Class JsonRpcException

All Implemented Interfaces:
Serializable

public class JsonRpcException extends RuntimeException
Exception carrying a JSON-RPC error code, used by request handlers to report client-facing errors (e.g. JsonRpcResponse.JsonRpcError.INVALID_PARAMS) instead of a generic internal error.
See Also:
  • Constructor Details

    • JsonRpcException

      public JsonRpcException(int code, String message)
  • Method Details

    • getCode

      public int getCode()