|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException javax.xml.bind.TypeConstraintException
public class TypeConstraintException
This is a runtime exception. The desired use is for generated set methods which would like to indicate that the specified value is invalid, for example, because a facet restriction wasn't met.
If a generated setter throws a TypeConstraintException
,
then it is the JAXB providers task to ensure, that the object,
on which the setter is invoked, remains unchanged.
Constructor Summary | |
---|---|
TypeConstraintException(java.lang.String pMessage)
Creates a new TypeConstraintException with the specified
detail message. |
|
TypeConstraintException(java.lang.String pMessage,
java.lang.String pErrorCode)
Creates a new TypeConstraintException with the specified
detail message and vendor specific error code. |
|
TypeConstraintException(java.lang.String pMessage,
java.lang.String pErrorCode,
java.lang.Throwable pLinkedException)
Creates a new TypeConstraintException with the specified
detail message, error code, and linked exception. |
|
TypeConstraintException(java.lang.String pMessage,
java.lang.Throwable pLinkedException)
Creates a new TypeConstraintException with the specified
detail message and linked exception. |
|
TypeConstraintException(java.lang.Throwable pLinkedException)
Creates a new TypeConstraintException with the specified
linked exception. |
Method Summary | |
---|---|
java.lang.String |
getErrorCode()
Returns the vendor specific error code, if any, or null. |
java.lang.Throwable |
getLinkedException()
Returns the linked exception, if any, or null. |
void |
setLinkedException(java.lang.Throwable pLinkedException)
Sets the linked exception. |
java.lang.String |
toString()
Converts the linked exception into a String. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TypeConstraintException(java.lang.String pMessage)
Creates a new TypeConstraintException
with the specified
detail message.
pMessage
- The detail message.public TypeConstraintException(java.lang.String pMessage, java.lang.String pErrorCode)
Creates a new TypeConstraintException
with the specified
detail message and vendor specific error code.
pMessage
- The detail message.pErrorCode
- The error code.public TypeConstraintException(java.lang.Throwable pLinkedException)
Creates a new TypeConstraintException
with the specified
linked exception.
pLinkedException
- The linked exception.public TypeConstraintException(java.lang.String pMessage, java.lang.Throwable pLinkedException)
Creates a new TypeConstraintException
with the specified
detail message and linked exception.
pMessage
- The detail message.pLinkedException
- The linked exception.public TypeConstraintException(java.lang.String pMessage, java.lang.String pErrorCode, java.lang.Throwable pLinkedException)
Creates a new TypeConstraintException
with the specified
detail message, error code, and linked exception.
pMessage
- The detail message.pErrorCode
- The vendor specific error code.pLinkedException
- The linked exception.Method Detail |
---|
public java.lang.String getErrorCode()
Returns the vendor specific error code, if any, or null.
public java.lang.Throwable getLinkedException()
Returns the linked exception, if any, or null.
public void setLinkedException(java.lang.Throwable pLinkedException)
Sets the linked exception.
pLinkedException
- The linked exception or null.public java.lang.String toString()
Converts the linked exception into a String. Overridden, because the returned string should contain the vendor specific error code, if any.
toString
in class java.lang.Throwable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |