Expand description
Layered error types for x402 facilitator operations.
The hierarchy is:
FacilitatorError
├── Verification(VerificationError)
├── Settlement(SettlementError)
├── Aborted { reason, message } // hook-level veto
├── Onchain(String) // chain RPC / tx revert
└── Internal(Box<dyn Error>) // unexpected internal failureEvery leaf carries enough information to round-trip through the wire via
AsPaymentProblem, which chain-specific crates implement for their own
error variants.
Enums§
- Client
Error - Client-side error returned when constructing / signing payments.
- Facilitator
Error - Top-level facilitator failure.
- Settlement
Error - Settlement-phase failures.
- Verification
Error - Verification-phase failures.