Class SoapFaultClientException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.ws.WebServiceException
org.springframework.ws.client.WebServiceClientException
org.springframework.ws.client.WebServiceFaultException
org.springframework.ws.soap.client.SoapFaultClientException
- All Implemented Interfaces:
Serializable
Thrown by
SoapFaultMessageResolver when the response message has a fault.- Since:
- 1.0.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSoapFaultClientException(SoapMessage faultMessage) Create a new instance of theSoapFaultClientExceptionclass. -
Method Summary
Methods inherited from class WebServiceFaultException
getWebServiceMessageMethods inherited from class org.springframework.core.NestedRuntimeException
contains, getMostSpecificCause, getRootCauseMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SoapFaultClientException
Create a new instance of theSoapFaultClientExceptionclass.- Parameters:
faultMessage- the fault message
-
-
Method Details
-
getSoapFault
-
getFaultCode
Returns the fault code. -
getFaultStringOrReason
Returns the fault string or reason. For SOAP 1.1, this returns the fault string. For SOAP 1.2, this returns the fault reason for the default locale.Note that this message returns the same as
Throwable.getMessage().
-