Package org.moera.lib.jsonrpc
Class JsonRpcException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.moera.lib.jsonrpc.JsonRpcException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
MoeraNamingException
,PushRelayException
Represents an exception specific to JSON-RPC operations.
This class serves as a base class for exceptions that occur during the processing
of JSON-RPC requests and responses.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJsonRpcException
(String message) Constructs a newJsonRpcException
with the specified message.JsonRpcException
(String message, Throwable cause) Constructs a newJsonRpcException
with the specified detail message and cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
JsonRpcException
Constructs a newJsonRpcException
with the specified message.- Parameters:
message
- the detail message explaining the reason for the exception
-
JsonRpcException
Constructs a newJsonRpcException
with the specified detail message and cause.- Parameters:
message
- the detail message explaining the reason for the exceptioncause
- the cause of the exception
-