Example usage for org.springframework.remoting RemoteConnectFailureException getRootCause

List of usage examples for org.springframework.remoting RemoteConnectFailureException getRootCause

Introduction

In this page you can find the example usage for org.springframework.remoting RemoteConnectFailureException getRootCause.

Prototype

@Nullable
public Throwable getRootCause() 

Source Link

Document

Retrieve the innermost cause of this exception, if any.

Usage

From source file:com.payu.ratel.client.RatelHessianProxyFactoryBean.java

private Object doInvoke(MethodInvocation invocation) throws Throwable {
    Object result;/* w  ww  .  ja v  a 2  s.  c  om*/
    try {
        result = super.invoke(invocation);
        return result;
    } catch (RemoteConnectFailureException e) {
        throw e;
    } catch (RemoteAccessException e) {
        if (e.getRootCause() != null) {
            throw e.getRootCause();
        } else {
            throw e;
        }
    }
}