Create a new T402PaymentError.
Human-readable error message
Optionaloptions: { cause?: Error; phase?: PaymentPhase; retryable?: boolean; code?: number }Optional error context
Optionalcause?: ErrorUnderlying error that triggered this one
Optionalphase?: PaymentPhasePayment lifecycle phase where the error occurred
Optionalretryable?: booleanWhether the failed operation can be retried
Optionalcode?: numberHTTP status code associated with the error
Optional ReadonlycauseReadonlyphaseReadonlyretryableOptional Readonlycode
Structured error class for the T402 payment protocol.