1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package org.apache.struts.action;
22
23 import java.io.Serializable;
24
25 /**
26 * <p>A class that encapsulates the error messages being reported by the
27 * <code>validate()</code> method of an <code>ActionForm</code>. Validation
28 * errors are either global to the entire <code>ActionForm</code> bean they
29 * are associated with, or they are specific to a particular bean property
30 * (and, therefore, a particular input field on the corresponding form).</p>
31 *
32 * <p>Each individual error is described by an <code>ActionMessage</code>
33 * object, which contains a message key (to be looked up in an appropriate
34 * message resources database), and up to four placeholder arguments used for
35 * parametric substitution in the resulting message.</p>
36 *
37 * <p><strong>IMPLEMENTATION NOTE</strong> - It is assumed that these objects
38 * are created and manipulated only within the context of a single thread.
39 * Therefore, no synchronization is required for access to internal
40 * collections.</p>
41 *
42 * @version $Rev: 471754 $ $Date: 2005-08-06 18:03:30 -0400 (Sat, 06 Aug 2005)
43 * $
44 */
45 public class ActionErrors extends ActionMessages implements Serializable {
46
47
48 /**
49 * <p>Create an empty <code>ActionErrors</code> object.</p>
50 */
51 public ActionErrors() {
52 super();
53 }
54
55 /**
56 * <p>Create an <code>ActionErrors</code> object initialized with the
57 * given messages.</p>
58 *
59 * @param messages The messages to be initially added to this object. This
60 * parameter can be <code>null</code>.
61 * @since Struts 1.1
62 */
63 public ActionErrors(ActionErrors messages) {
64 super(messages);
65 }
66 }