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

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

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.ExceptionCatcher Summary:
execute,   getCatalogName,   getExceptionCommand,   getExceptionKey,   postprocess,   setCatalogName,   setExceptionCommand,   setExceptionKey
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.struts.chain.ExceptionCatcher Detail:
 public boolean execute(Context context) 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.

 public String getExceptionKey() 

    Return the context attribute key under which any thrown exception will be stored.

 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.

 public  void setExceptionKey(String exceptionKey) 

    Set the context attribute key under which any thrown exception will be stored.