org.apache.struts.action
public class ActionError extends ActionMessage implements Serializable
Deprecated: Please use ActionMessage
instead, deprecated since 1.2.0.
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
.
Version: $Rev: 54929 $ $Date: 2004-10-16 17:38:42 +0100 (Sat, 16 Oct 2004) $
Constructor Summary | |
---|---|
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. |
Construct an action error with no replacement values.
Parameters: key Message key for this error message
Construct an action error with the specified replacement values.
Parameters: key Message key for this error message value0 First replacement value
Construct an action error with the specified replacement values.
Parameters: key Message key for this error message value0 First replacement value value1 Second replacement value
Construct an action error with the specified replacement values.
Parameters: key Message key for this error message value0 First replacement value value1 Second replacement value value2 Third replacement value
Construct an action error with the specified replacement values.
Parameters: key Message key for this error message value0 First replacement value value1 Second replacement value value2 Third replacement value value3 Fourth replacement value
Construct an action error with the specified replacement values.
Parameters: key Message key for this message values Array of replacement values