@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)
YarnException
public static YarnException getRemoteException(String message)
YarnException
public static Void unwrapAndThrowException(com.google.protobuf.ServiceException se) throws IOException, YarnException
se
- ServiceExceptionYarnException
or IOException
IOException
YarnException
Copyright © 2013 Apache Software Foundation. All rights reserved.