@InterfaceAudience.Private public class RemoteExceptionHandler extends Object
Modifier and Type | Method and Description |
---|---|
static IOException |
checkIOException(IOException e)
Examine passed IOException.
|
static Throwable |
checkThrowable(Throwable t)
Examine passed Throwable.
|
static IOException |
decodeRemoteException(org.apache.hadoop.ipc.RemoteException re)
Deprecated.
Use
RemoteException.unwrapRemoteException() instead.
In fact we should look into deprecating this whole class - St.Ack 2010929 |
public static Throwable checkThrowable(Throwable t)
decodeRemoteException(RemoteException)
on it. Otherwise,
pass back t
unaltered.t
- Throwable to examine.t
or
t
unaltered.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
RemoteException.unwrapRemoteException()
instead.
In fact we should look into deprecating this whole class - St.Ack 2010929re
- original exceptionIOException
- indicating a server error ocurred if the decoded
exception is not an IOException. The decoded exception is set as
the cause.Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.