Class RpcServerException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
RPC.VersionMismatch, RpcNoSuchMethodException, RpcNoSuchProtocolException

public class RpcServerException extends RpcException
Indicates an exception on the RPC server
See Also:
  • Constructor Details

    • RpcServerException

      public RpcServerException(String message)
      Constructs exception with the specified detail message.
      Parameters:
      message - detailed message.
    • RpcServerException

      public RpcServerException(String message, Throwable cause)
      Constructs exception with the specified detail message and cause.
      Parameters:
      message - message.
      cause - the cause (can be retried by the Throwable.getCause() method). (A null value 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.