public class RPCUtil extends Object
| Constructor and Description |
|---|
RPCUtil() |
| Modifier and Type | Method and Description |
|---|---|
static TezException |
getRemoteException(String message)
Returns an instance of
TezException |
static TezException |
getRemoteException(Throwable t)
Returns an instance of
TezException |
static Void |
unwrapAndThrowException(com.google.protobuf.ServiceException se)
Utility method that unwraps and returns appropriate exceptions.
|
static Void |
unwrapAndThrowNonIOException(com.google.protobuf.ServiceException se)
Utility method that unwraps and returns appropriate exceptions.
|
public static TezException getRemoteException(Throwable t)
TezExceptionpublic static TezException getRemoteException(String message)
TezExceptionpublic static Void unwrapAndThrowException(com.google.protobuf.ServiceException se) throws IOException, TezException
se - ServiceExceptionTezException or IOExceptionIOExceptionTezExceptionpublic static Void unwrapAndThrowNonIOException(com.google.protobuf.ServiceException se) throws TezException
se - ServiceExceptionTezException or IOExceptionTezExceptionCopyright © 2016 Apache Software Foundation. All rights reserved.