Spring Web Services Framework

org.springframework.ws.soap.client
Class SoapFaultClientException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.springframework.core.NestedRuntimeException
                  extended by org.springframework.ws.WebServiceException
                      extended by org.springframework.ws.client.WebServiceClientException
                          extended by org.springframework.ws.client.WebServiceFaultException
                              extended by 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

Constructor Summary
SoapFaultClientException(SoapMessage faultMessage)
          Create a new instance of the SoapFaultClientException class.
 
Method Summary
 QName getFaultCode()
          Returns the fault code.
 String getFaultStringOrReason()
          Returns the fault string or reason.
 SoapFault getSoapFault()
          Returns the SoapFault.
 
Methods inherited from class org.springframework.ws.client.WebServiceFaultException
getWebServiceMessage
 
Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getMessage, getMostSpecificCause, getRootCause
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SoapFaultClientException

public SoapFaultClientException(SoapMessage faultMessage)
Create a new instance of the SoapFaultClientException class.

Parameters:
faultMessage - the fault message
Method Detail

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().


Spring Web Services Framework

Copyright © 2005-2013 The Spring Web Services Framework. All Rights Reserved.