Oracle® Application Server
XML Java API Reference
10g Release 3 (10.1.3)


Class TypeConstraintException

  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byjavax.xml.bind.TypeConstraintException

All Implemented Interfaces:

public class TypeConstraintException
extends java.lang.RuntimeException

This exception indicates that a violation of a dynamically checked type constraint was detected.

This exception can be thrown by the generated setter methods of the schema derived Java content classes. However, since fail-fast validation is an optional feature for JAXB Providers to support, not all setter methods will throw this exception when a type constraint is violated.

If this exception is throw while invoking a fail-fast setter, the value of the property is guaranteed to remain unchanged, as if the setter were never called.

See Also:
ValidationEvent, Serialized Form

Constructor Summary

Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public TypeConstraintException()

Oracle® Application Server
XML Java API Reference
10g Release 3 (10.1.3)


Copyright © 2001 Sun Microsystems, Inc. All rights reserved.