SOAPException 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 SOAPException
object are problems such as difficulty setting a header, 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 input/output errors or a parsing
problem, such as an error in parsing a header.
| Modifier and Type | Field and Description |
|---|---|
| private Throwable | cause
Hides java. |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public | SOAPException(String
a description of what caused the exception reason)Constructs a |
| public | SOAPException(String
a description of what caused the exception reason, Throwable a cause)Throwable object that is to
be embedded in this SOAPException objectConstructs a |
| public | SOAPException(Throwable
a cause)Throwable object that is to
be embedded in this SOAPException objectConstructs a |
| Modifier and Type | Method and Description |
|---|---|
| public Throwable | Returns: the embeddedThrowable object or null
if there is noneOverrides java. Throwable object embedded in this
SOAPException if there is one.
|
| public String | Returns: the error or warning message for thisSOAPException or, if it has none, the
message of the embedded Throwable object,
if there is oneOverrides java. SOAPException
object.
|
| public synchronized Throwable | Returns: a reference to thisSOAPException instancethe cause)Throwable object that caused this
SOAPException object to be thrown. The value of this
parameter is saved for later retrieval by the
getCause() method. A null value is
permitted and indicates that the cause is nonexistent or
unknown.Overrides java. cause field of this SOAPException
object with the given Throwable object.
|
| cause | back to summary |
|---|---|
| private Throwable cause Hides java. The cause. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| SOAPException | back to summary |
|---|---|
| public SOAPException() Constructs a | |
| SOAPException | back to summary |
|---|---|
| public SOAPException(String reason) Constructs a
| |
| SOAPException | back to summary |
|---|---|
| public SOAPException(String reason, Throwable cause) Constructs a | |
| SOAPException | back to summary |
|---|---|
| public SOAPException(Throwable cause) Constructs a
| |
| getCause | back to summary |
|---|---|
| public Throwable getCause() Overrides java. Returns the | |
| getMessage | back to summary |
|---|---|
| public String getMessage() Overrides java. Returns the detail message for this
If there is an embedded | |
| initCause | back to summary |
|---|---|
| public synchronized Throwable initCause(Throwable cause) Overrides java. Initializes the
This method can be called at most once. It is generally called from
within the constructor or immediately after the constructor has
returned a new
| |