com.ibm.websphere.servlet.event

Interface ServletErrorListener

  • All Superinterfaces:
    java.util.EventListener


    public interface ServletErrorListener
    extends java.util.EventListener
    Event listener interface used to receive notifications about servlet errors.
    • Method Detail

      • onServletInitError

        void 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)
      • onServletServiceError

        void 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)
      • onServletDestroyError

        void 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()
      • onServletServiceDenied

        void 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
IBM WebSphere Application ServerTM
Release 8.5