pub enum PayError {
AttestationInvalid(String),
SettlementNotFound(String),
SettlementNotCommitted(String, String),
AlreadyIssued(String),
LedgerError(String),
UnknownResourceClass(String),
QuoteExpired,
QuantumExceedsMaximum {
requested: u64,
max: u64,
},
Internal(String),
}Expand description
Errors from the settlement/tariff protocol.
Variants§
AttestationInvalid(String)
The settlement attestation failed PQ-hybrid signature verification or the issuer’s key material is unknown.
SettlementNotFound(String)
No committed settlement row was found for the given settlement id.
SettlementNotCommitted(String, String)
The settlement row exists but is not in the settlement_committed
state — issuance requires a fully verified, server-validated
settlement.
AlreadyIssued(String)
The settlement row exists and is committed, but credits were already issued for it. This is a success case (idempotent replay) — the original transfer id and outcome are returned.
LedgerError(String)
The ledger rejected the issuance (insufficient issuer liability, unknown destination account, internal error, etc.).
UnknownResourceClass(String)
The tariff request named an unknown resource class or catalog version.
QuoteExpired
The quote has expired.
QuantumExceedsMaximum
The requested quantum exceeds the server-imposed maximum.
Internal(String)
An internal error (transport, serialization, etc.).
Trait Implementations§
Source§impl Error for PayError
impl Error for PayError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()