@InterfaceAudience.Private public class RemoteExceptionHandler extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.io.IOException |
checkIOException(java.io.IOException e)
Examine passed IOException.
|
static java.lang.Throwable |
checkThrowable(java.lang.Throwable t)
Examine passed Throwable.
|
static java.io.IOException |
decodeRemoteException(RemoteException re)
Deprecated.
Use
RemoteException#unwrapRemoteException() instead.
In fact we should look into deprecating this whole class - St.Ack 2010929 |
public static java.lang.Throwable checkThrowable(java.lang.Throwable t)
decodeRemoteException(RemoteException) on it. Otherwise,
pass back t unaltered.t - Throwable to examine.t or
t unaltered.public static java.io.IOException checkIOException(java.io.IOException e)
decodeRemoteException(RemoteException) on it. Otherwise,
pass back e unaltered.e - Exception to examine.e or
e unaltered.public static java.io.IOException decodeRemoteException(RemoteException re)
throws java.io.IOException
RemoteException#unwrapRemoteException() instead.
In fact we should look into deprecating this whole class - St.Ack 2010929re - original exceptionjava.io.IOException - indicating a server error ocurred if the decoded
exception is not an IOException. The decoded exception is set as
the cause.