Save This Page
Home » Struts-1.3.10 » org.apache.struts » chain » commands » [javadoc | source]
org.apache.struts.chain.commands
public class: ExceptionCatcher [javadoc | source]
java.lang.Object
   org.apache.struts.chain.commands.ActionCommandBase
      org.apache.struts.chain.commands.ExceptionCatcher

All Implemented Interfaces:
    org.apache.commons.chain.Filter, ActionCommand

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.

Method from org.apache.struts.chain.commands.ExceptionCatcher Summary:
execute,   getCatalogName,   getExceptionCommand,   lookupExceptionCommand,   postprocess,   setCatalogName,   setExceptionCommand
Methods from org.apache.struts.chain.commands.ActionCommandBase:
execute,   execute
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.struts.chain.commands.ExceptionCatcher Detail:
 public boolean execute(ActionContext actionCtx) throws Exception 

    Clear any existing stored exception and pass the context on to the remainder of the current chain.

 public String getCatalogName() 

    Return the name of the Catalog in which to perform lookups, or null for the default Catalog.

 public String getExceptionCommand() 

    Return the name of the command to be executed if an exception occurs.

 protected Command lookupExceptionCommand() 

    Return the command to be executed if an exception occurs.

 public boolean postprocess(Context context,
    Exception exception) 

    If an exception was thrown by a subsequent Command, pass it on to the specified exception handling chain. Otherwise, do nothing.

 public  void setCatalogName(String catalogName) 

    Set the name of the Catalog in which to perform lookups, or null for the default Catalog.

 public  void setExceptionCommand(String exceptionCommand) 

    Set the name of the command to be executed if an exception occurs.