Interface ComponentErrorHandler


@ProviderType public interface ComponentErrorHandler
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    When attribute is set on the Request causes Component Error Handler implementation to be skipped.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    allowComponentErrorHandling(org.apache.sling.api.SlingHttpServletRequest request)
    Allow component error handling for the Request.
    void
    suppressComponentErrorHandling(org.apache.sling.api.SlingHttpServletRequest request)
    Suppress component error handling for the Request.
  • Field Details

    • SUPPRESS_ATTR

      static final String 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