Class RpcException

All Implemented Interfaces:
Serializable

public class RpcException extends IOException
Represent the error caused by a RPC request.
See Also:
  • Constructor Details

    • RpcException

      public RpcException(RpcStatus status, String msg)
      Construct a new RPC exception with the given status and error message.
      Parameters:
      status - The status.
      msg - The error message.
    • RpcException

      public RpcException(RpcStatus status, String msg, Exception e)
      Construct a new RPC exception with the given status, error message, and exception.
      Parameters:
      status - The status.
      msg - The error message.
      e - The exception.
    • RpcException

      public RpcException(RpcStatus status, String msg, Throwable cause)
      Construct an RPC exception while preserving the original asynchronous failure.
  • Method Details

    • getStatus

      public RpcStatus getStatus()
      Returns the status.