@InterfaceAudience.LimitedPrivate(value={"MapReduce","YARN"}) public class RPCUtil extends Object
| Constructor and Description |
|---|
RPCUtil() |
| Modifier and Type | Method and Description |
|---|---|
static YarnException |
getRemoteException(String message)
Returns an instance of
YarnException |
static YarnException |
getRemoteException(Throwable t)
Returns an instance of
YarnException |
static Void |
unwrapAndThrowException(com.google.protobuf.ServiceException se)
Utility method that unwraps and returns appropriate exceptions.
|
public static YarnException getRemoteException(Throwable t)
YarnExceptionpublic static YarnException getRemoteException(String message)
YarnExceptionpublic static Void unwrapAndThrowException(com.google.protobuf.ServiceException se) throws IOException, YarnException
se - ServiceExceptionYarnException or IOExceptionIOExceptionYarnExceptionCopyright © 2018 CERN. All Rights Reserved.