Class SoapFaultException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.somda.sdc.dpws.soap.exception.SoapFaultException
- All Implemented Interfaces:
Serializable
Defines an exception that is supposed to be used to convey SOAP fault information.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSoapFaultException(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, org.somda.sdc.dpws.soap.wsaddressing.model.AttributedURIType messageId) Constructor that requires a wrapped SOAP fault message plus a nested cause and a messageId.SoapFaultException(SoapMessage faultMessage, org.somda.sdc.dpws.soap.wsaddressing.model.AttributedURIType messageId) Constructor that requires an wrapped SOAP fault message and a messageId. -
Method Summary
Modifier and TypeMethodDescriptionorg.somda.sdc.dpws.soap.model.FaultgetFault()Gets the SOAP fault information.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SoapFaultException
public SoapFaultException(SoapMessage faultMessage, @Nullable org.somda.sdc.dpws.soap.wsaddressing.model.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
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 org.somda.sdc.dpws.soap.wsaddressing.model.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
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 Details
-
getFaultMessage
-
getFault
public org.somda.sdc.dpws.soap.model.Fault getFault()Gets the SOAP fault information.- Returns:
Faultthat is encapsulated in theSoapMessagewrapped by this exception.
-
getMessage
- Overrides:
getMessagein classThrowable
-