Package com.adobe.acs.commons.wcm
Interface ComponentErrorHandler
@ProviderType
public interface ComponentErrorHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringWhen attribute is set on the Request causes Component Error Handler implementation to be skipped. -
Method Summary
Modifier and TypeMethodDescriptionvoidallowComponentErrorHandling(org.apache.sling.api.SlingHttpServletRequest request) Allow component error handling for the Request.voidsuppressComponentErrorHandling(org.apache.sling.api.SlingHttpServletRequest request) Suppress component error handling for the Request.
-
Field Details
-
SUPPRESS_ATTR
When attribute is set on the Request causes Component Error Handler implementation to be skipped. Ex: request.setAttribute(SUPPRESS_ATTR, true);- See Also:
-
-
Method Details
-
suppressComponentErrorHandling
void suppressComponentErrorHandling(org.apache.sling.api.SlingHttpServletRequest request) Suppress component error handling for the Request.- Parameters:
request- Sling Request object
-
allowComponentErrorHandling
void allowComponentErrorHandling(org.apache.sling.api.SlingHttpServletRequest request) Allow component error handling for the Request. Only useful after suppressComponentErrorHandling has been previously called.- Parameters:
request- Sling Request obj
-