public class JAXMException
extends javax.xml.soap.SOAPException
JAXMException
object may contain a
String
that gives the reason for the exception, an embedded Throwable
object, or both. This
class provides methods for retrieving reason messages and for retrieving the embedded Throwable
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 a Throwable
object include problems such as an input/output errors or a parsing problem, such as an error parsing a header.
Constructor and Description |
---|
JAXMException()
Constructs a
JAXMException object with no reason or embedded Throwable object. |
JAXMException(java.lang.String reason)
Constructs a
JAXMException object with the given String as the reason for the exception
being thrown. |
JAXMException(java.lang.String reason,
java.lang.Throwable cause)
Constructs a
JAXMException object with the given String as the reason for the exception
being thrown and the given Throwable object as an embedded exception. |
JAXMException(java.lang.Throwable cause)
Constructs a
JAXMException object initialized with the given Throwable object. |
public JAXMException()
JAXMException
object with no reason or embedded Throwable
object.public JAXMException(java.lang.String reason)
JAXMException
object with the given String
as the reason for the exception
being thrown.reason
- a String
giving a description of what caused this exceptionpublic JAXMException(java.lang.String reason, java.lang.Throwable cause)
JAXMException
object with the given String
as the reason for the exception
being thrown and the given Throwable
object as an embedded exception.reason
- a String
giving a description of what caused this exceptioncause
- a Throwable
object that is to be embedded in this JAXMException
objectpublic JAXMException(java.lang.Throwable cause)
JAXMException
object initialized with the given Throwable
object.cause
- a Throwable
object that is to be embedded in this JAXMException
objectCopyright (c) 2010, 2017 Oracle and/or its affiliates. All rights reserved.