| com.mockrunner.struts.ExceptionHandlerConfig
All known Subclasses: com.mockrunner.struts.DefaultExceptionHandlerConfig,
ExceptionHandlerConfig | public interface ExceptionHandlerConfig (Code) | | Generic interface for exception handlers. The default implementation
is
DefaultExceptionHandlerConfig and uses the Struts
exception handling mechanism. In special cases, you may provide your own
implementations of this interface, that may be independent from
the Struts exception handling mechanism.
Exception handler are called if an action throws an exception.
Use
ActionTestModule.addExceptionHandler to register an exception handler.
|
canHandle | public boolean canHandle(Exception exception)(Code) | | Returns if this handler is able to handle the exception.
true if this handler is able to handle the exception,false otherwise |
handle | public Object handle(Exception exception, ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code) | | Handles the exception.
Parameters: exception - the exception Parameters: mapping - the current ActionMapping Parameters: form - the current ActionForm Parameters: request - the current request Parameters: response - the current response the handler return value, usually an ActionForward ,but may be any object |
|
|