@InterfaceAudience.LimitedPrivate(value={"MapReduce","YARN"})
public class RPCUtil
extends Object
| Constructor and Description | 
|---|
| RPCUtil() | 
| Modifier and Type | Method and Description | 
|---|---|
| static org.apache.hadoop.yarn.exceptions.YarnException | getRemoteException(String message)Returns an instance of  YarnException | 
| static org.apache.hadoop.yarn.exceptions.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 org.apache.hadoop.yarn.exceptions.YarnException getRemoteException(Throwable t)
YarnExceptionpublic static org.apache.hadoop.yarn.exceptions.YarnException getRemoteException(String message)
YarnExceptionpublic static Void unwrapAndThrowException(com.google.protobuf.ServiceException se) throws IOException, org.apache.hadoop.yarn.exceptions.YarnException
se - ServiceExceptionYarnException or IOExceptionIOExceptionorg.apache.hadoop.yarn.exceptions.YarnExceptionCopyright © 2018 Apache Software Foundation. All Rights Reserved.