javax.xml.bind
Class JAXBException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.xml.bind.JAXBException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
MarshalException, PropertyException, UnmarshalException

public class JAXBException
extends Exception

This is the root exception class for all JAXB exceptions.

Since:
18-Oct-2004
Version:
$Revision: 1.2.4.3 $
Author:
Thomas.Diesler@jboss.org
See Also:
Serialized Form

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
 String getErrorCode()
          Get the vendor specific error code
 Throwable getLinkedException()
          Get the linked exception
 void setLinkedException(Throwable exception)
          Add a linked Exception.
 
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, wait, wait, wait
 

Constructor Detail

JAXBException

public JAXBException(String message)
Construct a JAXBException with the specified detail message.


JAXBException

public JAXBException(String message,
                     String errorCode)
Construct a JAXBException with the specified detail message and vendor specific errorCode.


JAXBException

public JAXBException(String message,
                     String errorCode,
                     Throwable exception)
Construct a JAXBException with the specified detail message, vendor specific errorCode, and linkedException.


JAXBException

public JAXBException(String message,
                     Throwable exception)
Construct a JAXBException with the specified detail message and linkedException.


JAXBException

public JAXBException(Throwable exception)
Construct a JAXBException with a linkedException.

Method Detail

getErrorCode

public String getErrorCode()
Get the vendor specific error code


getLinkedException

public Throwable getLinkedException()
Get the linked exception


setLinkedException

public void setLinkedException(Throwable exception)
Add a linked Exception.



Copyright © 2002 JBoss Group, LLC. All Rights Reserved.