Package com.ibm.websphere.servlet.event
Class ServletErrorEvent
java.lang.Object
java.util.EventObject
com.ibm.websphere.servlet.event.ApplicationEvent
com.ibm.websphere.servlet.event.ServletEvent
com.ibm.websphere.servlet.event.ServletErrorEvent
- All Implemented Interfaces:
- Serializable
Event that reports a servlet error.
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionServletErrorEvent(Object source, javax.servlet.ServletContext context, String servletName, String servletClassName, Throwable error) ServletErrorEvent constructor
- 
Method SummaryModifier and TypeMethodDescriptiongetError()Returns the top-level error.Get the original cause of the error.Methods inherited from class com.ibm.websphere.servlet.event.ServletEventgetServletClassName, getServletNameMethods inherited from class com.ibm.websphere.servlet.event.ApplicationEventgetServletContext, getServletNamesMethods inherited from class java.util.EventObjectgetSource, toString
- 
Constructor Details- 
ServletErrorEventpublic ServletErrorEvent(Object source, javax.servlet.ServletContext context, String servletName, String servletClassName, Throwable error) ServletErrorEvent constructor- Parameters:
- source- the source of the event.
- servletName- the name of the servlet that triggered the event.
- error- the error that caused the event.
 
 
- 
- 
Method Details- 
getErrorReturns the top-level error.
- 
getRootCauseGet 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.
 
-