Package com.ibm.websphere.servlet.event
Interface ServletErrorListener
- All Superinterfaces:
EventListener
Event listener interface used to receive notifications about servlet errors.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Triggered when an error occurs while executing the servlet's destroy() method.void
Triggered when an error occurs while executing the servlet's init() method.void
Triggered when a servlet request for service has been denied.void
Triggered when an error occurs while executing the servlet's service() method.
-
Method Details
-
onServletInitError
Triggered when an error occurs while executing the servlet's init() method. This method will be triggered if the servlet throws an exception from its init() method.- See Also:
-
Servlet.init(javax.servlet.ServletConfig)
-
onServletServiceError
Triggered when an error occurs while executing the servlet's service() method. This method will be triggered if the servlet throws an exception from its service() method or if the servlet calls the response.sendError() method.- See Also:
-
HttpServletResponse.sendError(int)
Servlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
-
onServletDestroyError
Triggered when an error occurs while executing the servlet's destroy() method. This method will be triggered if the servlet throws an exception from its destroy() method.- See Also:
-
Servlet.destroy()
-
onServletServiceDenied
Triggered when a servlet request for service has been denied. This event occurs when a request is received for a servlet, but the servlet is not available to process the request. This is typically triggered when the servlet throws an UnavailableException or if the servlet calls the response.sendError() method with an error code of SC_SERVICE_UNAVAILABLE.- See Also:
-
HttpServletResponse.SC_SERVICE_UNAVAILABLE
HttpServletResponse.sendError(int)
UnavailableException
-