Package org.apache.hadoop.ipc
Class RpcServerException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.apache.hadoop.ipc.RpcException
org.apache.hadoop.ipc.RpcServerException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
RPC.VersionMismatch,RpcNoSuchMethodException,RpcNoSuchProtocolException
Indicates an exception on the RPC server
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRpcServerException(String message) Constructs exception with the specified detail message.RpcServerException(String message, Throwable cause) Constructs exception with the specified detail message and cause. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RpcResponseHeaderProto.RpcErrorCodeProtoorg.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RpcResponseHeaderProto.RpcStatusProtoMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RpcServerException
Constructs exception with the specified detail message.- Parameters:
message- detailed message.
-
RpcServerException
Constructs exception with the specified detail message and cause.- Parameters:
message- message.cause- the cause (can be retried by theThrowable.getCause()method). (Anullvalue is permitted, and indicates that the cause is nonexistent or unknown.)
-
-
Method Details
-
getRpcStatusProto
public org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RpcResponseHeaderProto.RpcStatusProto getRpcStatusProto()- Returns:
- get the rpc status corresponding to this exception.
-
getRpcErrorCodeProto
public org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RpcResponseHeaderProto.RpcErrorCodeProto getRpcErrorCodeProto()- Returns:
- get the detailed rpc status corresponding to this exception.
-