Top Description Fields Constructors Methods
jakarta.xml.bind

public Class UnmarshalException

extends JAXBException
Class Inheritance

This exception indicates that an error has occurred while performing an unmarshal operation that prevents the Jakarta XML Binding Provider from completing the operation.

The ValidationEventHandler can cause this exception to be thrown during the unmarshal operations. See ValidationEventHandler.handleEvent(ValidationEvent).

Author
Since
1.6, JAXB 1.0
See Also
JAXBException, Unmarshaller, ValidationEventHandler

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
UnmarshalException(String
a description of the exception
message
)

Construct an UnmarshalException with the specified detail message.

public
UnmarshalException(String
a description of the exception
message
,
String
a string specifying the vendor specific error code
errorCode
)

Construct an UnmarshalException with the specified detail message and vendor specific errorCode.

public
UnmarshalException(Throwable
the linked exception
exception
)

Construct an UnmarshalException with a linkedException.

public
UnmarshalException(String
a description of the exception
message
,
Throwable
the linked exception
exception
)

Construct an UnmarshalException with the specified detail message and linkedException.

public
UnmarshalException(String
a description of the exception
message
,
String
a string specifying the vendor specific error code
errorCode
,
Throwable
the linked exception
exception
)

Construct an UnmarshalException with the specified detail message, vendor specific errorCode, and linkedException.

Method Summary

Inherited from jakarta.xml.bind.JAXBException:
getCausegetErrorCodegetLinkedExceptionprintStackTraceprintStackTraceprintStackTracesetLinkedExceptiontoString

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides jakarta.xml.bind.JAXBException.serialVersionUID.

Constructor Detail

UnmarshalExceptionback to summary
public UnmarshalException(String message)

Construct an UnmarshalException with the specified detail message. The errorCode and linkedException will default to null.

Parameters
message:String

a description of the exception

UnmarshalExceptionback to summary
public UnmarshalException(String message, String errorCode)

Construct an UnmarshalException with the specified detail message and vendor specific errorCode. The linkedException will default to null.

Parameters
message:String

a description of the exception

errorCode:String

a string specifying the vendor specific error code

UnmarshalExceptionback to summary
public UnmarshalException(Throwable exception)

Construct an UnmarshalException with a linkedException. The detail message and vendor specific errorCode will default to null.

Parameters
exception:Throwable

the linked exception

UnmarshalExceptionback to summary
public UnmarshalException(String message, Throwable exception)

Construct an UnmarshalException with the specified detail message and linkedException. The errorCode will default to null.

Parameters
message:String

a description of the exception

exception:Throwable

the linked exception

UnmarshalExceptionback to summary
public UnmarshalException(String message, String errorCode, Throwable exception)

Construct an UnmarshalException with the specified detail message, vendor specific errorCode, and linkedException.

Parameters
message:String

a description of the exception

errorCode:String

a string specifying the vendor specific error code

exception:Throwable

the linked exception