Class X402PaymentException
Exception thrown by the x402 payment client when a payment cannot be negotiated or executed. Carries a machine-readable Reason code alongside the human-readable message.
Inheritance
object
Exception
X402PaymentException
Namespace: Xrpl.X402
Assembly: Xrpl.X402.dll
Syntax
public sealed class X402PaymentException : Exception
Constructors
| Edit this page View SourceX402PaymentException(string, string)
Initializes a new instance of X402PaymentException.
Declaration
public X402PaymentException(string reason, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| string | reason | Short machine-readable reason code. |
| string | message | Human-readable description of the error. |
Properties
| Edit this page View SourceReason
Short machine-readable error code (e.g. "amount_over_cap", "payto_not_allowed").
Declaration
public string Reason { get; }
Property Value
| Type | Description |
|---|---|
| string |