Package jakarta.xml.messaging
Class JAXMException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- jakarta.xml.soap.SOAPException
-
- jakarta.xml.messaging.JAXMException
-
- All Implemented Interfaces:
java.io.Serializable
@Deprecated public class JAXMException extends jakarta.xml.soap.SOAPException
Deprecated.since 6.2, will be removed without replacementAn exception that signals that a JAXM exception has occurred. AJAXMException
object may contain aString
that gives the reason for the exception, an embeddedThrowable
object, or both. This class provides methods for retrieving reason messages and for retrieving the embeddedThrowable
object.Typical reasons for throwing a
JAXMException
object are problems such as not being able to send a message and not being able to get a connection with the provider. Reasons for embedding aThrowable
object include problems such as an input/output errors or a parsing problem, such as an error parsing a header.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JAXMException()
Deprecated.Constructs aJAXMException
object with no reason or embeddedThrowable
object.JAXMException(java.lang.String reason)
Deprecated.Constructs aJAXMException
object with the givenString
as the reason for the exception being thrown.JAXMException(java.lang.String reason, java.lang.Throwable cause)
Deprecated.Constructs aJAXMException
object with the givenString
as the reason for the exception being thrown and the givenThrowable
object as an embedded exception.JAXMException(java.lang.Throwable cause)
Deprecated.Constructs aJAXMException
object initialized with the givenThrowable
object.
-
-
-
Constructor Detail
-
JAXMException
public JAXMException()
Deprecated.Constructs aJAXMException
object with no reason or embeddedThrowable
object.
-
JAXMException
public JAXMException(java.lang.String reason)
Deprecated.Constructs aJAXMException
object with the givenString
as the reason for the exception being thrown.- Parameters:
reason
- aString
giving a description of what caused this exception
-
JAXMException
public JAXMException(java.lang.String reason, java.lang.Throwable cause)
Deprecated.Constructs aJAXMException
object with the givenString
as the reason for the exception being thrown and the givenThrowable
object as an embedded exception.- Parameters:
reason
- aString
giving a description of what caused this exceptioncause
- aThrowable
object that is to be embedded in thisJAXMException
object
-
JAXMException
public JAXMException(java.lang.Throwable cause)
Deprecated.Constructs aJAXMException
object initialized with the givenThrowable
object.- Parameters:
cause
- aThrowable
object that is to be embedded in thisJAXMException
object
-
-