org.apache.hadoop.hbase
Class RemoteExceptionHandler
java.lang.Object
org.apache.hadoop.hbase.RemoteExceptionHandler
public class RemoteExceptionHandler
- extends Object
An immutable class which contains a static method for handling
org.apache.hadoop.ipc.RemoteException exceptions.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
decodeRemoteException
public static IOException decodeRemoteException(RemoteException re)
throws IOException
- Converts org.apache.hadoop.ipc.RemoteException into original exception,
if possible. If the original exception is an Error or a RuntimeException,
throws the original exception.
- Parameters:
re
- original exception
- Returns:
- decoded RemoteException if it is an instance of or a subclass of
IOException, or the original RemoteException if it cannot be decoded.
- Throws:
IOException
- indicating a server error ocurred if the decoded
exception is not an IOException. The decoded exception is set as
the cause.
Copyright © 2006 The Apache Software Foundation