Class SoapFaultException
-
- All Implemented Interfaces:
-
java.io.Serializable
public class SoapFaultException extends Exception
Defines an exception that is supposed to be used to convey SOAP fault information.
-
-
Field Summary
Fields Modifier and Type Field Description public final SoapMessagefaultMessagepublic final Faultfaultpublic Throwablecausepublic Array<StackTraceElement>stackTrace
-
Constructor Summary
Constructors Constructor Description SoapFaultException(SoapMessage faultMessage, AttributedURIType messageId)Constructor that requires an wrapped SOAP fault message and a messageId. SoapFaultException(SoapMessage faultMessage)Constructor that requires an wrapped SOAP fault message. SoapFaultException(SoapMessage faultMessage, Throwable throwable, AttributedURIType messageId)Constructor that requires a wrapped SOAP fault message plus a nested cause and a messageId. SoapFaultException(SoapMessage faultMessage, Throwable throwable)Constructor that requires a wrapped SOAP fault message plus a nested cause.
-
Method Summary
Modifier and Type Method Description SoapMessagegetFaultMessage()FaultgetFault()Gets the SOAP fault information. StringgetMessage()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
SoapFaultException
SoapFaultException(SoapMessage faultMessage, AttributedURIType messageId)
Constructor that requires an wrapped SOAP fault message and a messageId.- Parameters:
faultMessage- SOAP message that shall include a JAXBElement with Fault body.messageId- of the request, to properly set the relatesTo field.
-
SoapFaultException
SoapFaultException(SoapMessage faultMessage)
Constructor that requires an wrapped SOAP fault message.- Parameters:
faultMessage- SOAP message that shall include a JAXBElement with Fault body.
-
SoapFaultException
SoapFaultException(SoapMessage faultMessage, Throwable throwable, AttributedURIType messageId)
Constructor that requires a wrapped SOAP fault message plus a nested cause and a messageId.- Parameters:
faultMessage- SOAP message that shall include a JAXBElement with Fault body.throwable- extended information, e.g.messageId- of the request, to properly set the relatesTo field.
-
SoapFaultException
SoapFaultException(SoapMessage faultMessage, Throwable throwable)
Constructor that requires a wrapped SOAP fault message plus a nested cause.- Parameters:
faultMessage- SOAP message that shall include a JAXBElement with Fault body.throwable- extended information, e.g.
-
-
Method Detail
-
getFaultMessage
SoapMessage getFaultMessage()
-
getFault
Fault getFault()
Gets the SOAP fault information.
- Returns:
Fault that is encapsulated in the SoapMessage wrapped by this exception.
-
getMessage
String getMessage()
-
-
-
-