org.springframework.ws.soap.client
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
public class SoapFaultClientException extends WebServiceFaultException
Thrown by SoapFaultMessageResolver
when the response message has a fault.
Since:
1.0.0
Author:
Arjen Poutsma
See Also: Serialized Form
SoapFaultClientException
public SoapFaultClientException (SoapMessage faultMessage)
Create a new instance of the SoapFaultClientException
class.
Parameters: faultMessage
- the fault message
getSoapFault
public SoapFault getSoapFault ()
Returns the SoapFault
.
getFaultCode
public QName getFaultCode ()
Returns the fault code.
getFaultStringOrReason
public String 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 NestedRuntimeException.getMessage()
.
Copyright © 2005-2013 The Spring Web Services Framework . All Rights Reserved.