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