Class FilterErrorEvent

  • All Implemented Interfaces:
    java.io.Serializable

    public class FilterErrorEvent
    extends FilterEvent
    Event that reports a filter error.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      FilterErrorEvent​(java.lang.Object source, javax.servlet.FilterConfig filterConfig, java.lang.Throwable error)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Throwable getError()
      Returns the top-level error.
      java.lang.Throwable getRootCause()
      Get the original cause of the error.
      • Methods inherited from class java.util.EventObject

        getSource, toString
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • FilterErrorEvent

        public FilterErrorEvent​(java.lang.Object source,
                                javax.servlet.FilterConfig filterConfig,
                                java.lang.Throwable error)
        Parameters:
        source -
        filterConfig -
    • Method Detail

      • getError

        public java.lang.Throwable getError()
        Returns the top-level error.
      • getRootCause

        public java.lang.Throwable getRootCause()
        Get the original cause of the error. Use of ServletExceptions by the engine to rethrow errors can cause the original error to be buried within one or more exceptions. This method will sift through the wrapped ServletExceptions to return the original error.