public abstract class AbstractExceptionHandler extends ActionCommandBase
Invoke the local or global exception handler configured for the exception class that occurred.
Constructor and Description |
---|
AbstractExceptionHandler() |
Modifier and Type | Method and Description |
---|---|
boolean |
execute(ActionContext actionCtx)
Invoke the appropriate
Action for this request, and
cache the returned ActionForward . |
protected abstract ForwardConfig |
handle(ActionContext context,
Exception exception,
ExceptionConfig exceptionConfig,
ActionConfig actionConfig,
ModuleConfig moduleConfig)
Perform the required handling of the specified exception.
|
execute
public boolean execute(ActionContext actionCtx) throws Exception
Invoke the appropriate Action
for this request, and
cache the returned ActionForward
.
execute
in interface ActionCommand
execute
in class ActionCommandBase
actionCtx
- The Context
for the current requestfalse
if a ForwardConfig
is returned,
else true
to complete processingException
- if thrown by the Action class and not declared by an
Exception Handlerprotected abstract ForwardConfig handle(ActionContext context, Exception exception, ExceptionConfig exceptionConfig, ActionConfig actionConfig, ModuleConfig moduleConfig) throws Exception
Perform the required handling of the specified exception.
context
- The Context
for this requestexception
- The exception being handledexceptionConfig
- The corresponding ExceptionConfig
actionConfig
- The ActionConfig
for this requestmoduleConfig
- The ModuleConfig
for this requestForwardConfig
to be processed next (if any),
or null
if processing has been completedException
- if there are any problems handling the exceptionCopyright © 2000–2016 Apache Software Foundation. All rights reserved.