javax.xml.bind

Class MarshalException


public class MarshalException
extends JAXBException

The MarshalException is a subclass of the JAXBException being thrown if the marshalling of a JAXB object failed.
Author:
JSR-31
Since:
JAXB1.0

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(String pMessage, String pErrorCode, Throwable pLinkedException)
Creates a new MarshalException with the specified detail message, error code, and linked exception.
MarshalException(String pMessage, Throwable pLinkedException)
Creates a new MarshalException with the specified detail message and linked exception.
MarshalException(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

Constructor Details

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(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.

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(Throwable pLinkedException)
Creates a new MarshalException with the specified linked exception.
Parameters:
pLinkedException - The linked exception.