Class JsonRpcResponse.JsonRpcError

Enclosing class:
JsonRpcResponse

public static final class JsonRpcResponse.JsonRpcError extends JsonRpcResponse
Represents a JSON-RPC error message.
  • Method Details

    • code

      public int code()
      Returns the 'code' of this error.
      Returns:
      the 'code' of this error
    • message

      public String message()
      Returns the 'message' of this error.
      Returns:
      the 'message' of this error
    • data

      public Optional<JsonValue> data()
      Returns the optional 'data' of this error.
      Returns:
      the optional 'data' of this error