|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.RemoteExceptionHandler
public class RemoteExceptionHandler
An immutable class which contains a static method for handling org.apache.hadoop.ipc.RemoteException exceptions.
| Method Summary | |
|---|---|
static IOException |
checkIOException(IOException e)
Examine passed IOException. |
static IOException |
decodeRemoteException(org.apache.hadoop.ipc.RemoteException re)
Converts org.apache.hadoop.ipc.RemoteException into original exception, if possible. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static IOException checkIOException(IOException e)
decodeRemoteException(RemoteException) on it. Otherwise,
pass back e unaltered.
e - Exception to examine.
e or
e unaltered.
public static IOException decodeRemoteException(org.apache.hadoop.ipc.RemoteException re)
throws IOException
re - original exception
IOException - indicating a server error ocurred if the decoded
exception is not an IOException. The decoded exception is set as
the cause.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||