Package org.consensusj.jsonrpc
Class JsonRpcErrorException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.consensusj.jsonrpc.JsonRpcException
org.consensusj.jsonrpc.JsonRpcErrorException
- All Implemented Interfaces:
Serializable
Exception wrapper for JsonRpcError
Useful in server implementations, throwing an error that will be transmitted
to the client.
TODO: See TODO in parent class
JsonRpcException
- See Also:
-
Constructor Summary
ConstructorDescriptionJsonRpcErrorException
(JsonRpcError.Error code, Throwable cause) JsonRpcErrorException
(JsonRpcError error, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptiongetError()
Get the JSON RPC Error POJOstatic JsonRpcErrorException
of
(JsonRpcError.Error code) Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
JsonRpcErrorException
-
JsonRpcErrorException
-
JsonRpcErrorException
-
-
Method Details
-
getError
Get the JSON RPC Error POJO- Returns:
- An error object
-
of
-