public class javax.xml.bind
JAXBException


Show All Login
Java SE 6
  
Extends: Throwable > Exception
Extended by: MarshalException, PropertyException, UnmarshalException, ValidationException
Details
This is the root exception class for all JAXB exceptions.
version$Revision: 1.3 $ $Date: 2004/10/22 15:46:02 $
sinceJAXB1.0
See also javax.xml.bind.JAXBContext, javax.xml.bind.Marshaller, javax.xml.bind.Unmarshaller

Constructors
public JAXBException(String message) Details
Construct a JAXBException with the specified detail message. The errorCode and linkedException will default to null.
messagea description of the exception
public JAXBException(String message, String errorCode) Details
Construct a JAXBException with the specified detail message and vendor specific errorCode. The linkedException will default to null.
messagea description of the exception
errorCodea string specifying the vendor specific error code
public JAXBException(Throwable exception) Details
Construct a JAXBException with a linkedException. The detail message and vendor specific errorCode will default to null.
exceptionthe linked exception
public JAXBException(String message, Throwable exception) Details
Construct a JAXBException with the specified detail message and linkedException. The errorCode will default to null.
messagea description of the exception
exceptionthe linked exception
public JAXBException(String message, String errorCode, Throwable exception) Details
Construct a JAXBException with the specified detail message, vendor specific errorCode, and linkedException.
messagea description of the exception
errorCodea string specifying the vendor specific error code
exceptionthe linked exception

Methods
public void printStackTrace(PrintStream s) Details
Prints this JAXBException and its stack trace (including the stack trace of the linkedException if it is non-null) to the PrintStream.
sPrintStream to use for output
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.
public void printStackTrace(PrintWriter s) Details
Prints this JAXBException and its stack trace (including the stack trace of the linkedException if it is non-null) to the PrintWriter.
sPrintWriter to use for output
public String toString()
Returns a short description of this JAXBException.

Properties
@Override
public Throwable
getCause()
public String getErrorCode() Details
Get the vendor specific error code
returna string specifying the vendor specific error code
public void setLinkedException(Throwable exception) Details
Add a linked Exception.
exceptionthe linked Exception (A null value is permitted and indicates that the linked exception does not exist or is unknown).
public Throwable getLinkedException() Details
Get the linked exception
returnthe linked Exception, null if none exists