public class RemoteException extends IOException
Constructor and Description |
---|
RemoteException(String className,
String msg) |
RemoteException(String className,
String msg,
RpcHeaderProtos.RpcResponseHeaderProto.RpcErrorCodeProto erCode) |
Modifier and Type | Method and Description |
---|---|
String |
getClassName() |
RpcHeaderProtos.RpcResponseHeaderProto.RpcErrorCodeProto |
getErrorCode() |
String |
toString() |
IOException |
unwrapRemoteException()
Instantiate and return the exception wrapped up by this remote exception.
|
IOException |
unwrapRemoteException(Class<?>... lookupTypes)
If this remote exception wraps up one of the lookupTypes
then return this exception.
|
static RemoteException |
valueOf(Attributes attrs)
Create RemoteException from attributes
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public RemoteException(String className, String msg, RpcHeaderProtos.RpcResponseHeaderProto.RpcErrorCodeProto erCode)
public String getClassName()
public RpcHeaderProtos.RpcResponseHeaderProto.RpcErrorCodeProto getErrorCode()
public IOException unwrapRemoteException(Class<?>... lookupTypes)
Unwraps any IOException.
lookupTypes
- the desired exception class.public IOException unwrapRemoteException()
This unwraps any Throwable
that has a constructor taking
a String
as a parameter.
Otherwise it returns this.
Throwable
public static RemoteException valueOf(Attributes attrs)
Copyright © 2013 Apache Software Foundation. All rights reserved.