Package org.apache.struts.util
Class ModuleException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.struts.util.ModuleException
- All Implemented Interfaces:
Serializable
Used for specialized exception handling.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected ActionMessage
The ActionMessage associated with this exception.protected String
-
Constructor Summary
ConstructorDescriptionModuleException
(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[] values) Construct an error 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.Construct an module exception with the specified replacement values. -
Method Summary
Modifier and TypeMethodDescriptionReturns the error associated with the exception.Returns the property associated with the exception.void
setProperty
(String property) Set the property associated with the exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
property
-
message
The ActionMessage associated with this exception.- Since:
- Struts 1.2
-
-
Constructor Details
-
ModuleException
Construct an module exception with no replacement values.- Parameters:
key
- Message key for this error message
-
ModuleException
Construct an module exception with the specified replacement values.- Parameters:
key
- Message key for this error messagevalue
- First replacement value
-
ModuleException
Construct an module exception with the specified replacement values.- Parameters:
key
- Message key for this error messagevalue0
- First replacement valuevalue1
- Second replacement value
-
ModuleException
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
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
Construct an error with the specified replacement values.- Parameters:
key
- Message key for this messagevalues
- Array of replacement values
-
-
Method Details
-
getProperty
Returns the property associated with the exception.- Returns:
- Value of property.
-
setProperty
Set the property associated with the exception. It can be a name of the edit field, which 'caused' the exception. -
getActionMessage
Returns the error associated with the exception.- Returns:
- Value of property error.
- Since:
- Struts 1.2
-