Class JsonRpcException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.rabbitmq.tools.jsonrpc.JsonRpcException
All Implemented Interfaces:
Serializable

public class JsonRpcException extends Exception
Thrown when a JSON-RPC service indicates an error occurred during a call.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Default serialized version ID
      See Also:
    • name

      private final String name
      Usually the constant string, "JSONRPCError"
    • code

      private final int code
      Error code
    • message

      private final String message
      Error message
    • error

      private final Object error
      Error detail object - may not always be present or meaningful
  • Constructor Details

    • JsonRpcException

      public JsonRpcException()
    • JsonRpcException

      public JsonRpcException(String detailMessage, String name, int code, String message, Object error)
  • Method Details

    • getName

      public String getName()
    • getCode

      public int getCode()
    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable
    • getError

      public Object getError()