Interface ComponentErrorHandler


  • @ProviderType
    public interface ComponentErrorHandler
    • Field Summary

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

      • 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:
        Constant Field Values
    • Method Detail

      • 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