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,
java.lang.Exception exception,
ExceptionConfig exceptionConfig,
ActionConfig actionConfig,
ModuleConfig moduleConfig)
Perform the required handling of the specified exception.
|
executepublic boolean execute(ActionContext actionCtx) throws java.lang.Exception
Invoke the appropriate Action for this request, and
cache the returned ActionForward.
execute in interface ActionCommandexecute in class ActionCommandBaseactionCtx - The Context for the current requestfalse if a ForwardConfig is returned,
else true to complete processingjava.lang.Exception - if thrown by the Action class and not declared by an
Exception Handlerprotected abstract ForwardConfig handle(ActionContext context, java.lang.Exception exception, ExceptionConfig exceptionConfig, ActionConfig actionConfig, ModuleConfig moduleConfig) throws java.lang.Exception
Perform the required handling of the specified exception.
context - The Context for this requestexception - The exception being handledexceptionConfig - The corresponding ExceptionConfigactionConfig - The ActionConfig for this requestmoduleConfig - The ModuleConfig for this requestForwardConfig to be processed next (if any),
or null if processing has been completedjava.lang.Exception - if there are any problems handling the exceptionCopyright © 2000–2024 Apache Software Foundation. All rights reserved.