Package org.moera.lib.pushrelay
Class PushRelayApiException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.moera.lib.jsonrpc.JsonRpcApiException
org.moera.lib.pushrelay.PushRelayApiException
- All Implemented Interfaces:
Serializable
Represents an exception specific to errors encountered while interacting with the Push Relay API
over JSON-RPC. This exception extends
JsonRpcApiException
and provides additional
context for Push Relay API-specific errors by leveraging JSON-RPC error codes and messages.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPushRelayApiException
(int rpcCode, String message) Constructs a newPushRelayApiException
instance with the specified JSON-RPC error code and message.PushRelayApiException
(JsonRpcError jsonRpcError) Constructs a newPushRelayApiException
instance using the providedJsonRpcError
. -
Method Summary
Methods inherited from class org.moera.lib.jsonrpc.JsonRpcApiException
getRpcCode, getRpcError
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
PushRelayApiException
Constructs a newPushRelayApiException
instance with the specified JSON-RPC error code and message.- Parameters:
rpcCode
- the JSON-RPC error code associated with this exceptionmessage
- the detail message providing additional information about the error
-
PushRelayApiException
Constructs a newPushRelayApiException
instance using the providedJsonRpcError
. The error code and message from theJsonRpcError
object are used to populate the exception details.- Parameters:
jsonRpcError
- theJsonRpcError
instance containing the error code and message
-