javax.xml.bind
Class JAXBException
Exception
javax.xml.bind.JAXBException
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
.
JAXBException(String pMessage) - Creates a new
JAXBException with the specified
detail message.
|
JAXBException(String pMessage, String pErrorCode) - Creates a new
JAXBException with the specified
detail message and vendor specific error code.
|
JAXBException(String pMessage, String pErrorCode, Throwable pLinkedException) - Creates a new
JAXBException with the specified
detail message, error code, and linked exception.
|
JAXBException(String pMessage, Throwable pLinkedException) - Creates a new
JAXBException with the specified
detail message and linked exception.
|
JAXBException(Throwable pLinkedException) - Creates a new
JAXBException with the specified
linked exception.
|
JAXBException
public JAXBException(String pMessage)
Creates a new JAXBException
with the specified
detail message.
pMessage
- The detail message.
JAXBException
public JAXBException(String pMessage,
String pErrorCode)
Creates a new JAXBException
with the specified
detail message and vendor specific error code.
pMessage
- The detail message.pErrorCode
- The error code.
JAXBException
public JAXBException(String pMessage,
String pErrorCode,
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.
JAXBException
public JAXBException(String pMessage,
Throwable pLinkedException)
Creates a new JAXBException
with the specified
detail message and linked exception.
pMessage
- The detail message.pLinkedException
- The linked exception.
JAXBException
public JAXBException(Throwable pLinkedException)
Creates a new JAXBException
with the specified
linked exception.
pLinkedException
- The linked exception.
getErrorCode
public String getErrorCode()
Returns the vendor specific error code, if any, or null.
getLinkedException
public Throwable getLinkedException()
Returns the linked exception, if any, or null.
printStackTrace
public void printStackTrace()
printStackTrace
public void printStackTrace(PrintStream pStream)
printStackTrace
public void printStackTrace(PrintWriter pWriter)
setLinkedException
public void setLinkedException(Throwable pLinkedException)
Sets the linked exception.
pLinkedException
- The linked exception or null.
toString
public String toString()
Converts the linked exception into a String. Overridden,
because the returned string should contain the vendor specific
error code, if any.