|
|||||||||
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 javax.xml.bind.JAXBException
public class JAXBException
This is the main exception class of JAXB. All other
exception classes (except the TypeConstraintException
,
which is a RuntimeException
are derived from the
JAXBException
.
Constructor Summary | |
---|---|
JAXBException(java.lang.String pMessage)
Creates a new JAXBException with the specified
detail message. |
|
JAXBException(java.lang.String pMessage,
java.lang.String pErrorCode)
Creates a new JAXBException with the specified
detail message and vendor specific error code. |
|
JAXBException(java.lang.String pMessage,
java.lang.String pErrorCode,
java.lang.Throwable pLinkedException)
Creates a new JAXBException with the specified
detail message, error code, and linked exception. |
|
JAXBException(java.lang.String pMessage,
java.lang.Throwable pLinkedException)
Creates a new JAXBException with the specified
detail message and linked exception. |
|
JAXBException(java.lang.Throwable pLinkedException)
Creates a new JAXBException 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 |
printStackTrace()
|
void |
printStackTrace(java.io.PrintStream pStream)
|
void |
printStackTrace(java.io.PrintWriter pWriter)
|
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, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JAXBException(java.lang.String pMessage)
Creates a new JAXBException
with the specified
detail message.
pMessage
- The detail message.public JAXBException(java.lang.String pMessage, java.lang.String pErrorCode)
Creates a new JAXBException
with the specified
detail message and vendor specific error code.
pMessage
- The detail message.pErrorCode
- The error code.public JAXBException(java.lang.Throwable pLinkedException)
Creates a new JAXBException
with the specified
linked exception.
pLinkedException
- The linked exception.public JAXBException(java.lang.String pMessage, java.lang.Throwable pLinkedException)
Creates a new JAXBException
with the specified
detail message and linked exception.
pMessage
- The detail message.pLinkedException
- The linked exception.public JAXBException(java.lang.String pMessage, java.lang.String pErrorCode, java.lang.Throwable pLinkedException)
Creates a new JAXBException
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
public void printStackTrace()
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintStream pStream)
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintWriter pWriter)
printStackTrace
in class java.lang.Throwable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |