/** * Returns the underlying cause. */ public Throwable getCause() { return getRootCause(); } }
/** * Returns the underlying cause. */ public Throwable getCause() { return getRootCause(); } }
/** * Returns the underlying cause. */ public Throwable getCause() { return getRootCause(); } }
/** * Returns the underlying cause. */ public Throwable getCause() { return getRootCause(); } }
/** * Utility method to get exception cause. Implements special handling of Hessian * exceptions. */ Throwable unwindThrowable(Throwable th) { if (th instanceof HessianProtocolException) { Throwable cause = ((HessianProtocolException) th).getRootCause(); if (cause != null) { return unwindThrowable(cause); } } else if (th instanceof HessianRuntimeException) { Throwable cause = ((HessianRuntimeException) th).getRootCause(); if (cause != null) { return unwindThrowable(cause); } } return Util.unwindException(th); } }
/** * Utility method to get exception cause. Implements special handling of Hessian * exceptions. */ Throwable unwindThrowable(Throwable th) { if (th instanceof HessianProtocolException) { Throwable cause = ((HessianProtocolException) th).getRootCause(); if (cause != null) { return unwindThrowable(cause); } } else if (th instanceof HessianRuntimeException) { Throwable cause = ((HessianRuntimeException) th).getRootCause(); if (cause != null) { return unwindThrowable(cause); } } return Util.unwindException(th); } }