Class PushRelayApiException

All Implemented Interfaces:
Serializable

public class PushRelayApiException extends JsonRpcApiException
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 Details

    • PushRelayApiException

      public PushRelayApiException(int rpcCode, String message)
      Constructs a new PushRelayApiException instance with the specified JSON-RPC error code and message.
      Parameters:
      rpcCode - the JSON-RPC error code associated with this exception
      message - the detail message providing additional information about the error
    • PushRelayApiException

      public PushRelayApiException(JsonRpcError jsonRpcError)
      Constructs a new PushRelayApiException instance using the provided JsonRpcError. The error code and message from the JsonRpcError object are used to populate the exception details.
      Parameters:
      jsonRpcError - the JsonRpcError instance containing the error code and message