Package org.apache.struts.chain.commands
Class AbstractExceptionHandler
java.lang.Object
org.apache.struts.chain.commands.ActionCommandBase
org.apache.struts.chain.commands.AbstractExceptionHandler
- All Implemented Interfaces:
Command<ActionContext>,ActionCommand
- Direct Known Subclasses:
ExceptionHandler
Invoke the local or global exception handler configured for the exception class that occurred.
- Version:
- $Rev$ $Date: 2005-11-12 13:01:44 -0500 (Sat, 12 Nov 2005) $
-
Field Summary
Fields inherited from interface org.apache.commons.chain.Command
CONTINUE_PROCESSING, PROCESSING_COMPLETE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanexecute_(ActionContext actionCtx) Invoke the appropriateActionfor this request, and cache the returnedActionForward.protected abstract ForwardConfighandle(ActionContext context, Exception exception, ExceptionConfig exceptionConfig, ActionConfig actionConfig, ModuleConfig moduleConfig) Perform the required handling of the specified exception.Methods inherited from class org.apache.struts.chain.commands.ActionCommandBase
execute
-
Constructor Details
-
AbstractExceptionHandler
public AbstractExceptionHandler()
-
-
Method Details
-
execute_
Invoke the appropriate
Actionfor this request, and cache the returnedActionForward.- Specified by:
execute_in classActionCommandBase- Parameters:
actionCtx- TheContextfor the current request- Returns:
falseif aForwardConfigis returned, elsetrueto complete processing- Throws:
Exception- if thrown by the Action class and not declared by an Exception Handler
-
handle
protected abstract ForwardConfig handle(ActionContext context, Exception exception, ExceptionConfig exceptionConfig, ActionConfig actionConfig, ModuleConfig moduleConfig) throws Exception Perform the required handling of the specified exception.
- Parameters:
context- TheContextfor this requestexception- The exception being handledexceptionConfig- The correspondingExceptionConfigactionConfig- TheActionConfigfor this requestmoduleConfig- TheModuleConfigfor this request- Returns:
- the
ForwardConfigto be processed next (if any), ornullif processing has been completed - Throws:
Exception- if there are any problems handling the exception
-