org.apache.struts.action
Class ActionException
- Serializable
public class ActionException
An
ActionException represents a potential exception
that may occur during delegation to an Action class.
Instances of this class may be configured in association
with an
ActionMapping
instance for named lookup of potentially
multiple destinations for a particular mapping instance.
An
ActionException
has the following minimal set of properties.
Additional properties can be provided as needed by subclassses.
- type - The fully qualified class name of the
exception to be associated to a particular
ActionMapping
.
- key - (Optional) Message key associated with the particular
exception.
- path - (Optional) Context releative URI that should
be redirected to as a result of the exception occuring. Will overide the
input form of the associated ActionMapping if one is provided.
- scope - (Optional) The scope to store the exception in
if a problem should occur - defaults to 'request'. Valid values are
'request' and 'session'.
- hierarchical - (Optional) Defines whether or not the
Exception hierarchy should be used when determining if an occuring
exception can be assigned to a mapping instance. Default is true.
- handler - (Optional) The fully qualified class name
of the handler, which is responsible to handle this exception.
Default is 'org.apache.struts.action.ExceptionHandler'.
Version:
- ldonlan
- Struts 1.1
freeze , getBundle , getHandler , getKey , getPath , getScope , getType , setBundle , setHandler , setKey , setPath , setScope , setType , toString |
getError
public ActionError getError()
Returns an instance of an ActionError configured for
this exception.
- ActionError
Copyright B) 2000-2005 - Apache Software Foundation