org.apache.struts.util
public class ModuleException extends Exception
| Field Summary | |
|---|---|
| protected ActionError | error |
| protected ActionMessage | message
The ActionMessage associated with this exception. |
| protected String | property |
| Constructor Summary | |
|---|---|
| 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.
| |
| Method Summary | |
|---|---|
| ActionMessage | getActionMessage()
Returns the error associated with the exception. |
| 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.
|
Deprecated: Use message instead.
Since: Struts 1.2
Parameters: key Message key for this error message
Parameters: key Message key for this error message value First replacement value
Parameters: key Message key for this error message value0 First replacement value value1 Second replacement value
Parameters: key Message key for this error message value0 First replacement value value1 Second replacement value value2 Third replacement value
Parameters: key Message key for this error message value0 First replacement value value1 Second replacement value value2 Third replacement value value3 Fourth replacement value
Parameters: key Message key for this message values Array of replacement values
Returns: Value of property error.
Since: Struts 1.2
Deprecated: Use getActionMessage() instead. This will be removed after Struts 1.2.
Returns the error associated with the exception.Returns: Value of property error.
Returns: Value of property.