JAXBExceptionpublic class JAXBException extends Exception This is the root exception class for all JAXB exceptions. |
Fields Summary |
---|
private String | errorCodeVendor specific error code | private Throwable | linkedExceptionException reference | static final long | serialVersionUID |
Constructors Summary |
---|
public JAXBException(String message)Construct a JAXBException with the specified detail message. The
errorCode and linkedException will default to null.
this( message, null, null );
| public JAXBException(String message, String errorCode)Construct a JAXBException with the specified detail message and vendor
specific errorCode. The linkedException will default to null.
this( message, errorCode, null );
| public JAXBException(Throwable exception)Construct a JAXBException with a linkedException. The detail message and
vendor specific errorCode will default to null.
this( null, null, exception );
| public JAXBException(String message, Throwable exception)Construct a JAXBException with the specified detail message and
linkedException. The errorCode will default to null.
this( message, null, exception );
| public JAXBException(String message, String errorCode, Throwable exception)Construct a JAXBException with the specified detail message, vendor
specific errorCode, and linkedException.
super( message );
this.errorCode = errorCode;
this.linkedException = exception;
|
Methods Summary |
---|
public java.lang.Throwable | getCause()
return linkedException;
| public java.lang.String | getErrorCode()Get the vendor specific error code
return this.errorCode;
| public java.lang.Throwable | getLinkedException()Get the linked exception
return linkedException;
| public void | printStackTrace(java.io.PrintStream s)Prints this JAXBException and its stack trace (including the stack trace
of the linkedException if it is non-null) to the PrintStream.
super.printStackTrace(s);
| public void | printStackTrace()Prints this JAXBException and its stack trace (including the stack trace
of the linkedException if it is non-null) to System.err.
super.printStackTrace();
| public void | printStackTrace(java.io.PrintWriter s)Prints this JAXBException and its stack trace (including the stack trace
of the linkedException if it is non-null) to the PrintWriter.
super.printStackTrace(s);
| public synchronized void | setLinkedException(java.lang.Throwable exception)Add a linked Exception.
this.linkedException = exception;
| public java.lang.String | toString()Returns a short description of this JAXBException.
return linkedException == null ?
super.toString() :
super.toString() + "\n - with linked exception:\n[" +
linkedException.toString()+ "]";
|
|