javax.xml.bind
Class MarshalException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.xml.bind.JAXBException
              extended by javax.xml.bind.MarshalException
All Implemented Interfaces:
java.io.Serializable

public class MarshalException
extends JAXBException

The MarshalException is a subclass of the JAXBException being thrown if the marshalling of a JAXB object failed.

Since:
JAXB1.0
Author:
JSR-31
See Also:
Serialized Form

Constructor Summary
MarshalException(java.lang.String pMessage)
          Creates a new MarshalException with the specified detail message.
MarshalException(java.lang.String pMessage, java.lang.String pErrorCode)
          Creates a new MarshalException with the specified detail message and vendor specific error code.
MarshalException(java.lang.String pMessage, java.lang.String pErrorCode, java.lang.Throwable pLinkedException)
          Creates a new MarshalException with the specified detail message, error code, and linked exception.
MarshalException(java.lang.String pMessage, java.lang.Throwable pLinkedException)
          Creates a new MarshalException with the specified detail message and linked exception.
MarshalException(java.lang.Throwable pLinkedException)
          Creates a new MarshalException with the specified linked exception.
 
Method Summary
 
Methods inherited from class javax.xml.bind.JAXBException
getErrorCode, getLinkedException, printStackTrace, printStackTrace, printStackTrace, setLinkedException, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MarshalException

public MarshalException(java.lang.String pMessage)

Creates a new MarshalException with the specified detail message.

Parameters:
pMessage - The detail message.

MarshalException

public MarshalException(java.lang.String pMessage,
                        java.lang.String pErrorCode)

Creates a new MarshalException with the specified detail message and vendor specific error code.

Parameters:
pMessage - The detail message.
pErrorCode - The error code.

MarshalException

public MarshalException(java.lang.Throwable pLinkedException)

Creates a new MarshalException with the specified linked exception.

Parameters:
pLinkedException - The linked exception.

MarshalException

public MarshalException(java.lang.String pMessage,
                        java.lang.Throwable pLinkedException)

Creates a new MarshalException with the specified detail message and linked exception.

Parameters:
pMessage - The detail message.
pLinkedException - The linked exception.

MarshalException

public MarshalException(java.lang.String pMessage,
                        java.lang.String pErrorCode,
                        java.lang.Throwable pLinkedException)

Creates a new MarshalException with the specified detail message, error code, and linked exception.

Parameters:
pMessage - The detail message.
pErrorCode - The vendor specific error code.
pLinkedException - The linked exception.