Class SoapFaultException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.somda.sdc.dpws.soap.exception.SoapFaultException
-
- All Implemented Interfaces:
Serializable
public class SoapFaultException extends Exception
Defines an exception that is supposed to be used to convey SOAP fault information.- See Also:
- SOAP Fault, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SoapFaultException(SoapMessage faultMessage)Constructor that requires an wrapped SOAP fault message.SoapFaultException(SoapMessage faultMessage, Throwable throwable)Constructor that requires a wrapped SOAP fault message plus a nested cause.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, AttributedURIType messageId)Constructor that requires an wrapped SOAP fault message and a messageId.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FaultgetFault()Gets the SOAP fault information.SoapMessagegetFaultMessage()StringgetMessage()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
SoapFaultException
public SoapFaultException(SoapMessage faultMessage, @Nullable AttributedURIType messageId)
Constructor that requires an wrapped SOAP fault message and a messageId.- Parameters:
faultMessage- SOAP message that shall include a JAXBElement withFaultbody. Otherwise, a ClassCastException is thrown.messageId- of the request, to properly set the relatesTo field.
-
SoapFaultException
public SoapFaultException(SoapMessage faultMessage)
Constructor that requires an wrapped SOAP fault message.- Parameters:
faultMessage- SOAP message that shall include a JAXBElement withFaultbody. Otherwise, a ClassCastException is thrown.
-
SoapFaultException
public SoapFaultException(SoapMessage faultMessage, Throwable throwable, @Nullable 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 withFaultbody. Otherwise, a ClassCastException is thrown.throwable- extended information, e.g. transport layer info.messageId- of the request, to properly set the relatesTo field.
-
SoapFaultException
public 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 withFaultbody. Otherwise, a ClassCastException is thrown.throwable- extended information, e.g. transport layer info.
-
-
Method Detail
-
getFaultMessage
public SoapMessage getFaultMessage()
-
getFault
public Fault getFault()
Gets the SOAP fault information.- Returns:
Faultthat is encapsulated in theSoapMessagewrapped by this exception.
-
getMessage
public String getMessage()
- Overrides:
getMessagein classThrowable
-
-