| java.lang.Object java.lang.Throwable java.lang.Exception javax.xml.bind.JAXBException
All known Subclasses: javax.xml.bind.UnmarshalException, javax.xml.bind.MarshalException, javax.xml.bind.ValidationException, javax.xml.bind.PropertyException,
JAXBException | public class JAXBException extends Exception (Code) | | This is the root exception class for all JAXB exceptions.
author: - Ryan Shoemaker, Sun Microsystems, Inc.
version: $Revision: 1.1 $ $Date: 2004/12/14 21:50:39 $ See Also: JAXBContext See Also: Marshaller See Also: Unmarshaller since: JAXB1.0 |
Constructor Summary | |
public | JAXBException(String message) Construct a JAXBException with the specified detail message. | public | JAXBException(String message, String errorCode) Construct a JAXBException with the specified detail message and vendor
specific errorCode. | public | JAXBException(Throwable exception) Construct a JAXBException with a linkedException. | public | JAXBException(String message, Throwable exception) Construct a JAXBException with the specified detail message and
linkedException. | public | JAXBException(String message, String errorCode, Throwable exception) Construct a JAXBException with the specified detail message, vendor
specific errorCode, and linkedException. |
serialVersionUID | final static long serialVersionUID(Code) | | |
JAXBException | public JAXBException(String message)(Code) | | Construct a JAXBException with the specified detail message. The
errorCode and linkedException will default to null.
Parameters: message - a description of the exception |
JAXBException | public JAXBException(String message, String errorCode)(Code) | | Construct a JAXBException with the specified detail message and vendor
specific errorCode. The linkedException will default to null.
Parameters: message - a description of the exception Parameters: errorCode - a string specifying the vendor specific error code |
JAXBException | public JAXBException(Throwable exception)(Code) | | Construct a JAXBException with a linkedException. The detail message and
vendor specific errorCode will default to null.
Parameters: exception - the linked exception |
JAXBException | public JAXBException(String message, Throwable exception)(Code) | | Construct a JAXBException with the specified detail message and
linkedException. The errorCode will default to null.
Parameters: message - a description of the exception Parameters: exception - the linked exception |
JAXBException | public JAXBException(String message, String errorCode, Throwable exception)(Code) | | Construct a JAXBException with the specified detail message, vendor
specific errorCode, and linkedException.
Parameters: message - a description of the exception Parameters: errorCode - a string specifying the vendor specific error code Parameters: exception - the linked exception |
getErrorCode | public String getErrorCode()(Code) | | Get the vendor specific error code
a string specifying the vendor specific error code |
getLinkedException | public Throwable getLinkedException()(Code) | | Get the linked exception
the linked Exception, null if none exists |
printStackTrace | public void printStackTrace(java.io.PrintStream s)(Code) | | Prints this JAXBException and its stack trace (including the stack trace
of the linkedException if it is non-null) to the PrintStream.
Parameters: s - PrintStream to use for output |
printStackTrace | public void printStackTrace()(Code) | | Prints this JAXBException and its stack trace (including the stack trace
of the linkedException if it is non-null) to System.err.
|
printStackTrace | public void printStackTrace(PrintWriter s)(Code) | | Prints this JAXBException and its stack trace (including the stack trace
of the linkedException if it is non-null) to the PrintWriter.
Parameters: s - PrintWriter to use for output |
setLinkedException | public synchronized void setLinkedException(Throwable exception)(Code) | | Add a linked Exception.
Parameters: exception - the linked Exception (A null value is permitted and indicates that the linked exception does not exist oris unknown). |
toString | public String toString()(Code) | | Returns a short description of this JAXBException.
|
|
|