Example usage for org.springframework.remoting.soap SoapFaultException getCause

List of usage examples for org.springframework.remoting.soap SoapFaultException getCause

Introduction

In this page you can find the example usage for org.springframework.remoting.soap SoapFaultException getCause.

Prototype

public synchronized Throwable getCause() 

Source Link

Document

Returns the cause of this throwable or null if the cause is nonexistent or unknown.

Usage

From source file:com.qpark.eip.core.failure.BaseFailureHandler.java

private static FailureDescription handleSoapFaultException(final SoapFaultException e, final String defaultCode,
        final Logger log, final Object... data) {
    FailureDescription fd = null;/*from  w ww.  ja  va2  s  .co m*/
    if (e.getCause() != null && WebServiceIOException.class.isInstance(e.getCause())) {
        fd = handleWebServiceIOException((WebServiceIOException) e.getCause(), defaultCode, log, data);
    } else if (e.getCause() != null && WebServiceTransportException.class.isInstance(e.getCause())) {
        fd = getFailure("E_SOAP_FAULT_CREDENTIAL_ERROR", e, data);
    } else if (e.getCause() != null && UnmarshallingFailureException.class.isInstance(e.getCause())) {
        fd = getFailure("E_SOAP_FAULT_MARSHALLING_ERROR", e, data);
    }
    return fd;
}