Package com.ibm.websphere.servlet.event
Interface ServletErrorListener
- 
- All Superinterfaces:
- java.util.EventListener
 
 public interface ServletErrorListener extends java.util.EventListenerEvent listener interface used to receive notifications about servlet errors.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonServletDestroyError(ServletErrorEvent evt)Triggered when an error occurs while executing the servlet's destroy() method.voidonServletInitError(ServletErrorEvent evt)Triggered when an error occurs while executing the servlet's init() method.voidonServletServiceDenied(ServletErrorEvent evt)Triggered when a servlet request for service has been denied.voidonServletServiceError(ServletErrorEvent evt)Triggered when an error occurs while executing the servlet's service() method.
 
- 
- 
- 
Method Detail- 
onServletInitErrorvoid onServletInitError(ServletErrorEvent evt) 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)
 
 - 
onServletServiceErrorvoid onServletServiceError(ServletErrorEvent evt) 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)
 
 - 
onServletDestroyErrorvoid onServletDestroyError(ServletErrorEvent evt) 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()
 
 - 
onServletServiceDeniedvoid onServletServiceDenied(ServletErrorEvent evt) 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
 
 
- 
 
-