org.apache.struts.action
Class ActionError
- Serializable
public class ActionError
implements Serializable
An encapsulation of an individual error message returned by the
validate
method of an
ActionForm
, consisting
of a message key (to be used to look up message text in an appropriate
message resources database) plus up to four placeholder objects that can
be used for parametric replacement in the message text.
The placeholder objects are referenced in the message text using the same
syntax used by the JDK
MessageFormat
class. Thus, the first
placeholder is '{0}', the second is '{1}', etc.
Since Struts 1.1
ActionError
extends
ActionMessage
.
$Rev: 54929 $ $Date: 2004-10-16 17:38:42 +0100 (Sat, 16 Oct 2004) $
ActionError(String key) - Construct an action error with no replacement values.
|
ActionError(String key, Object value0) - Construct an action error with the specified replacement values.
|
ActionError(String key, Object value0, Object value1) - Construct an action error with the specified replacement values.
|
ActionError(String key, Object value0, Object value1, Object value2) - Construct an action error with the specified replacement values.
|
ActionError(String key, Object value0, Object value1, Object value2, Object value3) - Construct an action error with the specified replacement values.
|
ActionError(String key, Object[] values) - Construct an action error with the specified replacement values.
|
ActionError
public ActionError(String key)
Construct an action error with no replacement values.
key
- Message key for this error message
ActionError
public ActionError(String key,
Object value0)
Construct an action error with the specified replacement values.
key
- Message key for this error messagevalue0
- First replacement value
ActionError
public ActionError(String key,
Object value0,
Object value1)
Construct an action error with the specified replacement values.
key
- Message key for this error messagevalue0
- First replacement valuevalue1
- Second replacement value
ActionError
public ActionError(String key,
Object value0,
Object value1,
Object value2)
Construct an action error with the specified replacement values.
key
- Message key for this error messagevalue0
- First replacement valuevalue1
- Second replacement valuevalue2
- Third replacement value
ActionError
public ActionError(String key,
Object value0,
Object value1,
Object value2,
Object value3)
Construct an action error with the specified replacement values.
key
- Message key for this error messagevalue0
- First replacement valuevalue1
- Second replacement valuevalue2
- Third replacement valuevalue3
- Fourth replacement value
ActionError
public ActionError(String key,
Object[] values)
Construct an action error with the specified replacement values.
key
- Message key for this messagevalues
- Array of replacement values
Copyright B) 2000-2007 - The Apache Software Foundation