Interface FilterErrorListener

All Superinterfaces:
EventListener
All Known Implementing Classes:
FilterListenerImpl

public interface FilterErrorListener extends EventListener
Event listener interface used to receive notifications about filter errors.
  • Method Details

    • onFilterInitError

      void onFilterInitError(FilterErrorEvent evt)
      Triggered when an error occurs while executing the filter's init() method. This method will be triggered if the filter throws an exception from its init() method.
      See Also:
      • Filter.init(jakarta.servlet.FilterConfig)
    • onFilterDoFilterError

      void onFilterDoFilterError(FilterErrorEvent evt)
      Triggered when an error occurs while executing the filter's doFilter() method. This method will be triggered if the filter throws an exception from its doFilter() method.
      See Also:
      • HttpServletResponse.sendError(int)
      • Filter.doFilter(jakarta.servlet.ServletRequest, jakarta.servlet.ServletResponse, jakarta.servlet.FilterChain)
    • onFilterDestroyError

      void onFilterDestroyError(FilterErrorEvent evt)
      Triggered when an error occurs while executing the filter's destroy() method. This method will be triggered if the filter throws an exception from its destroy() method.
      See Also:
      • Servlet.destroy()