|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
org.apache.struts.util Class ModuleException
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--org.apache.struts.util.ModuleException
- All Implemented Interfaces:
- java.io.Serializable
- public class ModuleException
- extends java.lang.Exception
Used for specialized exception handling.
- See Also:
- Serialized Form
Field Summary | |
protected ActionError |
error
Deprecated. Use message instead. |
protected ActionMessage |
message
The ActionMessage associated with this exception. |
protected java.lang.String |
property
|
Fields inherited from class java.lang.Throwable |
backtrace, detailMessage, serialVersionUID |
Constructor Summary | |
ModuleException(java.lang.String key)
Construct an module exception with no replacement values. |
|
ModuleException(java.lang.String key,
java.lang.Object value)
Construct an module exception with the specified replacement values. |
|
ModuleException(java.lang.String key,
java.lang.Object[] values)
Construct an action error with the specified replacement values. |
|
ModuleException(java.lang.String key,
java.lang.Object value0,
java.lang.Object value1)
Construct an module exception with the specified replacement values. |
|
ModuleException(java.lang.String key,
java.lang.Object value0,
java.lang.Object value1,
java.lang.Object value2)
Construct an module exception with the specified replacement values. |
|
ModuleException(java.lang.String key,
java.lang.Object value0,
java.lang.Object value1,
java.lang.Object value2,
java.lang.Object value3)
Construct an module exception with the specified replacement values. |
Method Summary | |
ActionMessage |
getActionMessage()
Returns the error associated with the exception. |
ActionError |
getError()
Deprecated. Use getActionMessage() instead. This will be removed after Struts 1.2. |
java.lang.String |
getProperty()
Returns the property associated with the exception. |
void |
setProperty(java.lang.String property)
Set the property associated with the exception. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, printStackTrace0, toString |
Methods inherited from class java.lang.Object |
|
Field Detail |
property
protected java.lang.String property
error
protected ActionError error
- Deprecated. Use message instead.
message
protected ActionMessage message
- The ActionMessage associated with this exception.
- Since:
- Struts 1.2
Constructor Detail |
ModuleException
public ModuleException(java.lang.String key)
- Construct an module exception with no replacement values.
- Parameters:
key
- Message key for this error message
ModuleException
public ModuleException(java.lang.String key, java.lang.Object value)
- Construct an module exception with the specified replacement values.
- Parameters:
key
- Message key for this error messagevalue
- First replacement value
ModuleException
public ModuleException(java.lang.String key, java.lang.Object value0, java.lang.Object value1)
- Construct an module exception with the specified replacement values.
- Parameters:
key
- Message key for this error messagevalue0
- First replacement valuevalue1
- Second replacement value
ModuleException
public ModuleException(java.lang.String key, java.lang.Object value0, java.lang.Object value1, java.lang.Object value2)
- Construct an module exception with the specified replacement values.
- Parameters:
key
- Message key for this error messagevalue0
- First replacement valuevalue1
- Second replacement valuevalue2
- Third replacement value
ModuleException
public ModuleException(java.lang.String key, java.lang.Object value0, java.lang.Object value1, java.lang.Object value2, java.lang.Object value3)
- Construct an module exception with the specified replacement values.
- Parameters:
key
- Message key for this error messagevalue0
- First replacement valuevalue1
- Second replacement valuevalue2
- Third replacement valuevalue3
- Fourth replacement value
ModuleException
public ModuleException(java.lang.String key, java.lang.Object[] values)
- Construct an action error with the specified replacement values.
- Parameters:
key
- Message key for this messagevalues
- Array of replacement values
Method Detail |
getProperty
public java.lang.String getProperty()
- Returns the property associated with the exception.
- Returns:
- Value of property.
setProperty
public void setProperty(java.lang.String property)
- Set the property associated with the exception. It can be a name of the edit field, which 'caused' the exception.
getError
public ActionError getError()
- Deprecated. Use getActionMessage() instead. This will be removed
after Struts 1.2.
- Returns the error associated with the exception.
- Returns:
- Value of property error.
getActionMessage
public ActionMessage getActionMessage()
- Returns the error associated with the exception.
- Returns:
- Value of property error.
- Since:
- Struts 1.2
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2000-2005 - The Apache Software Foundation