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.SOAPExceptionDeprecated.since 6.2, will be removed without replacementAn exception that signals that a JAXM exception has occurred. AJAXMExceptionobject may contain aStringthat gives the reason for the exception, an embeddedThrowableobject, or both. This class provides methods for retrieving reason messages and for retrieving the embeddedThrowableobject.Typical reasons for throwing a
JAXMExceptionobject 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 aThrowableobject 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 aJAXMExceptionobject with no reason or embeddedThrowableobject.JAXMException(java.lang.String reason)Deprecated.Constructs aJAXMExceptionobject with the givenStringas the reason for the exception being thrown.JAXMException(java.lang.String reason, java.lang.Throwable cause)Deprecated.Constructs aJAXMExceptionobject with the givenStringas the reason for the exception being thrown and the givenThrowableobject as an embedded exception.JAXMException(java.lang.Throwable cause)Deprecated.Constructs aJAXMExceptionobject initialized with the givenThrowableobject.
-
-
-
Constructor Detail
-
JAXMException
public JAXMException()
Deprecated.Constructs aJAXMExceptionobject with no reason or embeddedThrowableobject.
-
JAXMException
public JAXMException(java.lang.String reason)
Deprecated.Constructs aJAXMExceptionobject with the givenStringas the reason for the exception being thrown.- Parameters:
reason- aStringgiving a description of what caused this exception
-
JAXMException
public JAXMException(java.lang.String reason, java.lang.Throwable cause)Deprecated.Constructs aJAXMExceptionobject with the givenStringas the reason for the exception being thrown and the givenThrowableobject as an embedded exception.- Parameters:
reason- aStringgiving a description of what caused this exceptioncause- aThrowableobject that is to be embedded in thisJAXMExceptionobject
-
JAXMException
public JAXMException(java.lang.Throwable cause)
Deprecated.Constructs aJAXMExceptionobject initialized with the givenThrowableobject.- Parameters:
cause- aThrowableobject that is to be embedded in thisJAXMExceptionobject
-
-