Exception: Remitmd::AllowanceExceededError
- Inherits:
-
RemitError
- Object
- StandardError
- RemitError
- Remitmd::AllowanceExceededError
- Defined in:
- lib/remitmd/x402_client.rb
Overview
Raised when an x402 payment amount exceeds the configured auto-pay limit.
Constant Summary
Constants inherited from RemitError
RemitError::BELOW_MINIMUM, RemitError::BOUNTY_CLAIMED, RemitError::BOUNTY_EXPIRED, RemitError::BOUNTY_MAX_ATTEMPTS, RemitError::BOUNTY_NOT_FOUND, RemitError::CANCEL_BLOCKED_CLAIM_START, RemitError::CANCEL_BLOCKED_EVIDENCE, RemitError::CHAIN_MISMATCH, RemitError::CHAIN_UNSUPPORTED, RemitError::DEPOSIT_NOT_FOUND, RemitError::DUPLICATE_INVOICE, RemitError::ESCROW_ALREADY_FUNDED, RemitError::ESCROW_EXPIRED, RemitError::ESCROW_NOT_FOUND, RemitError::INSUFFICIENT_BALANCE, RemitError::INSUFFICIENT_FUNDS, RemitError::INVALID_ADDRESS, RemitError::INVALID_AMOUNT, RemitError::INVALID_INVOICE, RemitError::INVALID_PAYMENT_TYPE, RemitError::INVALID_SIGNATURE, RemitError::NETWORK_ERROR, RemitError::NONCE_REUSED, RemitError::RATE_EXCEEDS_CAP, RemitError::RATE_LIMITED, RemitError::SELF_PAYMENT, RemitError::SERVER_ERROR, RemitError::STREAM_NOT_FOUND, RemitError::TAB_DEPLETED, RemitError::TAB_EXPIRED, RemitError::TAB_NOT_FOUND, RemitError::TIMESTAMP_EXPIRED, RemitError::UNAUTHORIZED, RemitError::VERSION_MISMATCH
Instance Attribute Summary collapse
-
#amount_usdc ⇒ Object
readonly
Returns the value of attribute amount_usdc.
-
#limit_usdc ⇒ Object
readonly
Returns the value of attribute limit_usdc.
Attributes inherited from RemitError
Instance Method Summary collapse
-
#initialize(amount_usdc, limit_usdc) ⇒ AllowanceExceededError
constructor
A new instance of AllowanceExceededError.
Constructor Details
#initialize(amount_usdc, limit_usdc) ⇒ AllowanceExceededError
Returns a new instance of AllowanceExceededError.
14 15 16 17 18 19 20 21 |
# File 'lib/remitmd/x402_client.rb', line 14 def initialize(amount_usdc, limit_usdc) @amount_usdc = amount_usdc @limit_usdc = limit_usdc super( "ALLOWANCE_EXCEEDED", "x402 payment #{format("%.6f", amount_usdc)} USDC exceeds auto-pay limit #{format("%.6f", limit_usdc)} USDC" ) end |
Instance Attribute Details
#amount_usdc ⇒ Object (readonly)
Returns the value of attribute amount_usdc.
12 13 14 |
# File 'lib/remitmd/x402_client.rb', line 12 def amount_usdc @amount_usdc end |
#limit_usdc ⇒ Object (readonly)
Returns the value of attribute limit_usdc.
12 13 14 |
# File 'lib/remitmd/x402_client.rb', line 12 def limit_usdc @limit_usdc end |