javax.xml.bind
public class JAXBException extends Exception
This is the main exception class of JAXB. All other
exception classes (except the TypeConstraintException,
which is a java.lang.RuntimeException are derived from the
JAXBException
.
Since: JAXB1.0
Constructor Summary | |
---|---|
JAXBException(String pMessage) Creates a new | |
JAXBException(String pMessage, String pErrorCode) Creates a new | |
JAXBException(Throwable pLinkedException) Creates a new | |
JAXBException(String pMessage, Throwable pLinkedException) Creates a new | |
JAXBException(String pMessage, String pErrorCode, Throwable pLinkedException) Creates a new |
Method Summary | |
---|---|
String | getErrorCode() Returns the vendor specific error code, if any, or null. |
Throwable | getLinkedException() Returns the linked exception, if any, or null. |
void | printStackTrace() |
void | printStackTrace(PrintStream pStream) |
void | printStackTrace(PrintWriter pWriter) |
void | setLinkedException(Throwable pLinkedException) Sets the linked exception. |
String | toString() Converts the linked exception into a String. |
Creates a new JAXBException
with the specified
detail message.
Parameters: pMessage The detail message.
Creates a new JAXBException
with the specified
detail message and vendor specific error code.
Parameters: pMessage The detail message. pErrorCode The error code.
Creates a new JAXBException
with the specified
linked exception.
Parameters: pLinkedException The linked exception.
Creates a new JAXBException
with the specified
detail message and linked exception.
Parameters: pMessage The detail message. pLinkedException The linked exception.
Creates a new JAXBException
with the specified
detail message, error code, and linked exception.
Parameters: pMessage The detail message. pErrorCode The vendor specific error code. pLinkedException The linked exception.
Returns the vendor specific error code, if any, or null.
Returns the linked exception, if any, or null.
Sets the linked exception.
Parameters: pLinkedException The linked exception or null.
Converts the linked exception into a String. Overridden, because the returned string should contain the vendor specific error code, if any.