java.io.Serializablepublic class RemoteException
extends java.io.IOException
| Constructor | Description |
|---|---|
RemoteException(java.lang.String className,
java.lang.String msg) |
|
RemoteException(java.lang.String className,
java.lang.String msg,
org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RpcResponseHeaderProto.RpcErrorCodeProto erCode) |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getClassName() |
|
org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RpcResponseHeaderProto.RpcErrorCodeProto |
getErrorCode() |
|
java.lang.String |
toString() |
|
java.io.IOException |
unwrapRemoteException() |
Instantiate and return the exception wrapped up by this remote exception.
|
java.io.IOException |
unwrapRemoteException(java.lang.Class<?>... lookupTypes) |
If this remote exception wraps up one of the lookupTypes
then return this exception.
|
static RemoteException |
valueOf(org.xml.sax.Attributes attrs) |
Create RemoteException from attributes.
|
public RemoteException(java.lang.String className,
java.lang.String msg)
className - wrapped exception, may be nullmsg - may be nullpublic RemoteException(java.lang.String className,
java.lang.String msg,
org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RpcResponseHeaderProto.RpcErrorCodeProto erCode)
className - wrapped exception, may be nullmsg - may be nullerCode - may be nullpublic java.lang.String getClassName()
public org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RpcResponseHeaderProto.RpcErrorCodeProto getErrorCode()
public java.io.IOException unwrapRemoteException(java.lang.Class<?>... lookupTypes)
Unwraps any IOException.
lookupTypes - the desired exception class. may be null.public java.io.IOException unwrapRemoteException()
This unwraps any Throwable that has a constructor taking
a String as a parameter.
Otherwise it returns this.
Throwablepublic static RemoteException valueOf(org.xml.sax.Attributes attrs)
attrs - may not be null.public java.lang.String toString()
toString in class java.lang.ThrowableCopyright © 2008–2025 Apache Software Foundation. All rights reserved.