javax.xml.bind

Class MarshalException

public class MarshalException extends JAXBException

The MarshalException is a subclass of the {@link javax.xml.bind.JAXBException} being thrown if the marshalling of a JAXB object failed.

Since: JAXB1.0

Author: JSR-31

Constructor Summary
MarshalException(String pMessage)

Creates a new MarshalException with the specified detail message.

MarshalException(String pMessage, String pErrorCode)

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

MarshalException(Throwable pLinkedException)

Creates a new MarshalException with the specified linked exception.

MarshalException(String pMessage, Throwable pLinkedException)

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

MarshalException(String pMessage, String pErrorCode, Throwable pLinkedException)

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

Constructor Detail

MarshalException

public MarshalException(String pMessage)

Creates a new MarshalException with the specified detail message.

Parameters: pMessage The detail message.

MarshalException

public MarshalException(String pMessage, 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(Throwable pLinkedException)

Creates a new MarshalException with the specified linked exception.

Parameters: pLinkedException The linked exception.

MarshalException

public MarshalException(String pMessage, 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(String pMessage, String pErrorCode, 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.