| java.lang.Object org.apache.struts.chain.commands.ActionCommandBase org.apache.struts.chain.commands.ExceptionCatcher
ExceptionCatcher | public class ExceptionCatcher extends ActionCommandBase implements Filter(Code) | | Intercept any exception thrown by a subsequent Command in
this processing chain, and fire the configured exception handler chain
after storing the exception that has occurred into the
Context .
version: $Rev: 471754 $ $Date: 2005-11-12 13:01:44 -0500 (Sat, 12 Nov 2005) version: $ |
execute | public boolean execute(ActionContext actionCtx) throws Exception(Code) | | Clear any existing stored exception and pass the
context on to the remainder of the current chain.
Parameters: actionCtx - The Context for the current request false so that processing continues throws: Exception - On any error |
getCatalogName | public String getCatalogName()(Code) | | Return the name of the Catalog in which to perform
lookups, or null for the default Catalog .
Name of catalog to use, or null |
getExceptionCommand | public String getExceptionCommand()(Code) | | Return the name of the command to be executed if an exception
occurs.
The name of the command to be executed on an exception |
lookupExceptionCommand | protected Command lookupExceptionCommand()(Code) | | Return the command to be executed if an exception occurs.
The command to be executed if an exception occurs throws: IllegalArgumentException - If catalog cannot be found throws: IllegalStateException - If command property is not specified |
postprocess | public boolean postprocess(Context context, Exception exception)(Code) | | If an exception was thrown by a subsequent Command ,
pass it on to the specified exception handling chain. Otherwise, do
nothing.
Parameters: context - The Context to be processed by this Filter Parameters: exception - The Exception (if any) that was thrown bythe last Command that was executed; otherwisenull TRUE if post processing an exception occurred and the exceptionprocessing chain invoked throws: IllegalStateException - If exception throws exception |
setCatalogName | public void setCatalogName(String catalogName)(Code) | | Set the name of the Catalog in which to perform
lookups, or null for the default Catalog .
Parameters: catalogName - The new catalog name or null |
setExceptionCommand | public void setExceptionCommand(String exceptionCommand)(Code) | | Set the name of the command to be executed if an exception
occurs.
Parameters: exceptionCommand - The name of the chain to be executed |
|
|