| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public exception JAXBException extends Exception
This is the root exception class for all JAXB exceptions.
Constructor Summary | |
---|---|
JAXBException(String message) Construct a JAXBException with the specified detail message. |
|
JAXBException(String message, String errorCode) Construct a JAXBException with the specified detail message and vendor specific errorCode. |
|
JAXBException(String message, String errorCode, Throwable exception) Construct a JAXBException with the specified detail message, vendor specific errorCode, and linkedException. |
|
JAXBException(String message, Throwable exception) Construct a JAXBException with the specified detail message and linkedException. |
|
JAXBException(Throwable exception) Construct a JAXBException with a linkedException. |
Method Summary | |
---|---|
Throwable |
getCause() Returns the cause of this throwable or null if the
cause is nonexistent or unknown.
|
String |
Get the vendor specific error code |
Throwable |
Get the linked exception |
void |
Prints this JAXBException and its stack trace (including the stack trace of the linkedException if it is non-null) to System.err. |
void |
Prints this JAXBException and its stack trace (including the stack trace of the linkedException if it is non-null) to the PrintStream. |
void |
Prints this JAXBException and its stack trace (including the stack trace of the linkedException if it is non-null) to the PrintWriter. |
void |
setLinkedException(Throwable exception) Add a linked Exception. |
String |
toString() Returns a short description of this JAXBException. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JAXBException(String message)
message
- a description of the exceptionpublic JAXBException(String message, String errorCode)
message
- a description of the exceptionerrorCode
- a string specifying the vendor specific error codepublic JAXBException(String message, String errorCode, Throwable exception)
message
- a description of the exceptionerrorCode
- a string specifying the vendor specific error codeexception
- the linked exceptionpublic JAXBException(String message, Throwable exception)
message
- a description of the exceptionexception
- the linked exceptionpublic JAXBException(Throwable exception)
exception
- the linked exceptionMethod Detail |
---|
public Throwable getCause()
getCause
in class Throwable
public String getErrorCode()
public Throwable getLinkedException()
public void printStackTrace()
printStackTrace
in class Throwable
public void printStackTrace(PrintStream s)
printStackTrace
in class Throwable
s
- PrintStream to use for outputpublic void printStackTrace(PrintWriter s)
printStackTrace
in class Throwable
s
- PrintWriter to use for outputpublic synchronized void setLinkedException(Throwable exception)
exception
- the linked Exception (A null value is permitted and
indicates that the linked exception does not exist or
is unknown).public String toString()
toString
in class Throwable
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |