25
26 package javax.xml.bind;
27
28 /**
29 * This exception indicates that a violation of a dynamically checked type
30 * constraint was detected.
31 *
32 * <p>
33 * This exception can be thrown by the generated setter methods of the schema
34 * derived Java content classes. However, since fail-fast validation is
35 * an optional feature for JAXB Providers to support, not all setter methods
36 * will throw this exception when a type constraint is violated.
37 *
38 * <p>
39 * If this exception is throw while invoking a fail-fast setter, the value of
40 * the property is guaranteed to remain unchanged, as if the setter were never
41 * called.
42 *
43 * @author <ul><li>Ryan Shoemaker, Sun Microsystems, Inc.</li><li>Joe Fialli, Sun Microsystems, Inc.</li></ul>
44 * @see ValidationEvent
45 * @since JAXB1.0
46 */
47
48 public class TypeConstraintException extends java.lang.RuntimeException {
49
50 /**
51 * Vendor specific error code
52 *
53 */
54 private String errorCode;
55
56 /**
57 * Exception reference
58 *
59 */
60 private Throwable linkedException;
61
62
63 /**
64 * Construct a TypeConstraintException with the specified detail message. The
65 * errorCode and linkedException will default to null.
|
25
26 package javax.xml.bind;
27
28 /**
29 * This exception indicates that a violation of a dynamically checked type
30 * constraint was detected.
31 *
32 * <p>
33 * This exception can be thrown by the generated setter methods of the schema
34 * derived Java content classes. However, since fail-fast validation is
35 * an optional feature for JAXB Providers to support, not all setter methods
36 * will throw this exception when a type constraint is violated.
37 *
38 * <p>
39 * If this exception is throw while invoking a fail-fast setter, the value of
40 * the property is guaranteed to remain unchanged, as if the setter were never
41 * called.
42 *
43 * @author <ul><li>Ryan Shoemaker, Sun Microsystems, Inc.</li><li>Joe Fialli, Sun Microsystems, Inc.</li></ul>
44 * @see ValidationEvent
45 * @since 1.6, JAXB 1.0
46 */
47
48 public class TypeConstraintException extends java.lang.RuntimeException {
49
50 /**
51 * Vendor specific error code
52 *
53 */
54 private String errorCode;
55
56 /**
57 * Exception reference
58 *
59 */
60 private Throwable linkedException;
61
62
63 /**
64 * Construct a TypeConstraintException with the specified detail message. The
65 * errorCode and linkedException will default to null.
|