Class SOAPException

java.lang.Object
java.lang.Throwable
java.lang.Exception
jakarta.xml.soap.SOAPException
All Implemented Interfaces:
Serializable

public class SOAPException extends Exception
An exception that signals that a SOAP exception has occurred. A 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.

Since:
1.6
See Also: