| java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException javax.xml.bind.TypeConstraintException
TypeConstraintException | public class TypeConstraintException extends java.lang.RuntimeException (Code) | | 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.
author: - Ryan Shoemaker, Sun Microsystems, Inc.
- Joe Fialli, Sun Microsystems, Inc.
version: $Revision: 1.1 $ See Also: ValidationEvent since: JAXB1.0 |
TypeConstraintException | public TypeConstraintException(String message)(Code) | | Construct a TypeConstraintException with the specified detail message. The
errorCode and linkedException will default to null.
Parameters: message - a description of the exception |
TypeConstraintException | public TypeConstraintException(String message, String errorCode)(Code) | | Construct a TypeConstraintException with the specified detail message and vendor
specific errorCode. The linkedException will default to null.
Parameters: message - a description of the exception Parameters: errorCode - a string specifying the vendor specific error code |
TypeConstraintException | public TypeConstraintException(Throwable exception)(Code) | | Construct a TypeConstraintException with a linkedException. The detail message and
vendor specific errorCode will default to null.
Parameters: exception - the linked exception |
TypeConstraintException | public TypeConstraintException(String message, Throwable exception)(Code) | | Construct a TypeConstraintException with the specified detail message and
linkedException. The errorCode will default to null.
Parameters: message - a description of the exception Parameters: exception - the linked exception |
TypeConstraintException | public TypeConstraintException(String message, String errorCode, Throwable exception)(Code) | | Construct a TypeConstraintException with the specified detail message,
vendor specific errorCode, and linkedException.
Parameters: message - a description of the exception Parameters: errorCode - a string specifying the vendor specific error code Parameters: exception - the linked exception |
getErrorCode | public String getErrorCode()(Code) | | Get the vendor specific error code
a string specifying the vendor specific error code |
getLinkedException | public Throwable getLinkedException()(Code) | | Get the linked exception
the linked Exception, null if none exists |
printStackTrace | public void printStackTrace(java.io.PrintStream s)(Code) | | Prints this TypeConstraintException and its stack trace (including the stack trace
of the linkedException if it is non-null) to the PrintStream.
Parameters: s - PrintStream to use for output |
printStackTrace | public void printStackTrace()(Code) | | Prints this TypeConstraintException and its stack trace (including the stack trace
of the linkedException if it is non-null) to System.err.
|
setLinkedException | public synchronized void setLinkedException(Throwable exception)(Code) | | Add a linked Exception.
Parameters: exception - the linked Exception (A null value is permitted and indicates that the linked exception does not exist oris unknown). |
toString | public String toString()(Code) | | Returns a short description of this TypeConstraintException.
|
|
|