org.apache.struts.util
Class ModuleException
Exceptionorg.apache.struts.util.ModuleException
public class ModuleException
extends Exception
Used for specialized exception handling.
ModuleException(String key)- Construct an module exception with no replacement values.
|
ModuleException(String key, Object value)- Construct an module exception with the specified replacement values.
|
ModuleException(String key, Object value0, Object value1)- Construct an module exception with the specified replacement values.
|
ModuleException(String key, Object value0, Object value1, Object value2)- Construct an module exception with the specified replacement values.
|
ModuleException(String key, Object value0, Object value1, Object value2, Object value3)- Construct an module exception with the specified replacement values.
|
ModuleException(String key, Object[] values)- Construct an action error with the specified replacement values.
|
ActionError | getError()- Returns the error associated with the exception.
|
String | getProperty()- Returns the property associated with the exception.
|
void | setProperty(String property)- Set the property associated with the exception.
|
property
protected String property
ModuleException
public ModuleException(String key)
Construct an module exception with no replacement values.
key - Message key for this error message
ModuleException
public ModuleException(String key,
Object value) Construct an module exception with the specified replacement values.
key - Message key for this error messagevalue - First replacement value
ModuleException
public ModuleException(String key,
Object value0,
Object value1) Construct an module exception with the specified replacement values.
key - Message key for this error messagevalue0 - First replacement valuevalue1 - Second replacement value
ModuleException
public ModuleException(String key,
Object value0,
Object value1,
Object value2) Construct an module exception with the specified replacement values.
key - Message key for this error messagevalue0 - First replacement valuevalue1 - Second replacement valuevalue2 - Third replacement value
ModuleException
public ModuleException(String key,
Object value0,
Object value1,
Object value2,
Object value3) Construct an module exception with the specified replacement values.
key - Message key for this error messagevalue0 - First replacement valuevalue1 - Second replacement valuevalue2 - Third replacement valuevalue3 - Fourth replacement value
ModuleException
public ModuleException(String key,
Object[] values) Construct an action error with the specified replacement values.
key - Message key for this messagevalues - Array of replacement values
getError
public ActionError getError()
Returns the error associated with the exception.
- Value of property error.
getProperty
public String getProperty()
Returns the property associated with the exception.
- Value of property.
setProperty
public void setProperty(String property)
Set the property associated with the exception.
It can be a name of the edit field, which 'caused' the exception.
Copyright B) 2000-2005 - Apache Software Foundation