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
- Author:
- Arjen Poutsma
- See Also:
-
Constructor Summary
ConstructorDescriptionSoapFaultClientException
(SoapMessage faultMessage) Create a new instance of theSoapFaultClientException
class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the fault code.Returns the fault string or reason.Returns theSoapFault
.Methods inherited from class org.springframework.ws.client.WebServiceFaultException
getWebServiceMessage
Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getMostSpecificCause, getRootCause
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SoapFaultClientException
Create a new instance of theSoapFaultClientException
class.- Parameters:
faultMessage
- the fault message
-
-
Method Details
-
getSoapFault
Returns theSoapFault
. -
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()
.
-