Package com.rabbitmq.tools.jsonrpc
Class JsonRpcException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.rabbitmq.tools.jsonrpc.JsonRpcException
- All Implemented Interfaces:
Serializable
Thrown when a JSON-RPC service indicates an error occurred during a call.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
Error codeprivate final Object
Error detail object - may not always be present or meaningfulprivate final String
Error messageprivate final String
Usually the constant string, "JSONRPCError"private static final long
Default serialized version ID -
Constructor Summary
ConstructorsConstructorDescriptionJsonRpcException
(String detailMessage, String name, int code, String message, Object error) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDDefault serialized version ID- See Also:
-
name
Usually the constant string, "JSONRPCError" -
code
private final int codeError code -
message
Error message -
error
Error detail object - may not always be present or meaningful
-
-
Constructor Details
-
JsonRpcException
public JsonRpcException() -
JsonRpcException
-
-
Method Details
-
getName
-
getCode
public int getCode() -
getMessage
- Overrides:
getMessage
in classThrowable
-
getError
-