Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.struts2.dispatcher
Interface DispatcherErrorHandler

All Known Implementing Classes:
  DefaultDispatcherErrorHandler

    public interface DispatcherErrorHandler

Implementation of this interface is used to handle internal errors or missing resources. Basically it sends back HTTP error codes or error page depends on requirements.

Method Summary
`void` | `handleError(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, int code, Exception e)` Handle passed error code or exception
`void` | `init(javax.servlet.ServletContext ctx)` Init instance after creating `Dispatcher`

Method Detail

### init

    void init(javax.servlet.ServletContext ctx)

  Init instance after creating `Dispatcher`

  Parameters:
    `ctx` - current `ServletContext`

### handleError

    void handleError(javax.servlet.http.HttpServletRequest request,
                     javax.servlet.http.HttpServletResponse response,
                     int code,
                     Exception e)

  Handle passed error code or exception

  Parameters:
    `request` - current `HttpServletRequest`
    `response` - current `HttpServletResponse`
    `code` - HTTP Error Code, see `HttpServletResponse` for possible error codes
    `e` - Exception to report

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000–2018 Apache Software Foundation. All rights reserved.