Exception: Blockchain0xX402::ClientError

Inherits:
Error
  • Object
show all
Defined in:
lib/blockchain0x_x402/errors.rb

Overview

Raised when the 402-aware client wrapper cannot resolve a challenge. Codes:

no_matching_requirement  - no accepts entry matched the SDK network
                           (or the network is unknown; sub-plan 27.1
                           A6 - a refusal, never an accepts[0] guess)
settlement_timeout       - on-chain payment did not confirm in budget
chain_failed             - payment status flipped to failed
amount_over_cap          - 402 quoted above max_amount_wei (27.1 A6)
recipient_not_allowed    - payToAddress outside allowed_pay_to (27.1 A6)
stale_challenge          - confirmation landed after the requirement's
                           maxAgeSeconds window (27.1 A6)

Instance Attribute Summary

Attributes inherited from Error

#code

Method Summary

Methods inherited from Error

#initialize

Constructor Details

This class inherits a constructor from Blockchain0xX402::Error