#[non_exhaustive]pub enum VerificationError {
Show 24 variants
InvalidFormat(String),
InvalidPaymentAmount,
Early,
Expired,
ChainIdMismatch,
RecipientMismatch,
AssetMismatch,
InsufficientFunds,
Permit2AllowanceRequired,
InvalidSignature(String),
SimulationFailed(String),
UnsupportedChain,
UnsupportedScheme,
AcceptedRequirementsMismatch,
NonceAlreadyUsed,
DuplicateSettlement,
MemoMismatch,
MemoInstructionCountInvalid {
count: usize,
},
SettlementAmountExceedsPermitted {
requested: String,
authorised: String,
},
UptoFacilitatorMismatch {
witness: String,
},
UptoUnauthorizedFacilitator,
UptoAmountExceedsPermitted,
Wire(ErrorReason),
ExtensionEchoMismatch {
extension_key: String,
},
}Expand description
Verification-phase failures.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidFormat(String)
Payload JSON / binary could not be parsed.
InvalidPaymentAmount
Payment amount is below the required amount.
Early
Authorization is not yet valid.
Expired
Authorization has expired.
ChainIdMismatch
Chain ID does not match requirements.
RecipientMismatch
Recipient does not match requirements.
AssetMismatch
Token asset does not match requirements.
InsufficientFunds
On-chain balance is insufficient.
Permit2AllowanceRequired
Permit2 allowance is insufficient. HTTP mapping: 412.
InvalidSignature(String)
Signature is invalid.
SimulationFailed(String)
Pre-settlement simulation failed.
UnsupportedChain
Chain is not supported by this facilitator.
UnsupportedScheme
Scheme is not supported by this facilitator.
AcceptedRequirementsMismatch
Accepted details diverge from declared requirements.
NonceAlreadyUsed
EIP-3009 nonce already consumed on-chain.
DuplicateSettlement
Payload was already processed.
MemoMismatch
Memo data does not match extra.memo.
MemoInstructionCountInvalid
Invalid number of memo instructions (spec requires exactly one).
SettlementAmountExceedsPermitted
Requested settlement exceeds the signed maximum (upto).
Fields
Maximum amount signed by the buyer.
UptoFacilitatorMismatch
witness.facilitator is not an address known to this facilitator.
On-chain proxy reverted with UnauthorizedFacilitator.
UptoAmountExceedsPermitted
On-chain proxy reverted with AmountExceedsPermitted.
Wire(ErrorReason)
Official scheme wire reason not represented by a dedicated variant.
ExtensionEchoMismatch
Client extension echo does not match the server advertisement.
Implementations§
Source§impl VerificationError
impl VerificationError
Sourcepub fn from_wire(code: &str) -> Self
pub fn from_wire(code: &str) -> Self
Wraps an official scheme wire code (known variant or ErrorReason::Custom).
Trait Implementations§
Source§impl AsPaymentProblem for VerificationError
impl AsPaymentProblem for VerificationError
Source§fn as_payment_problem(&self) -> PaymentProblem
fn as_payment_problem(&self) -> PaymentProblem
Source§impl Debug for VerificationError
impl Debug for VerificationError
Source§impl Display for VerificationError
impl Display for VerificationError
Source§impl Error for VerificationError
impl Error for VerificationError
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()
Source§impl From<Error> for VerificationError
impl From<Error> for VerificationError
Source§impl From<VerificationError> for FacilitatorError
impl From<VerificationError> for FacilitatorError
Source§fn from(source: VerificationError) -> Self
fn from(source: VerificationError) -> Self
Auto Trait Implementations§
impl Freeze for VerificationError
impl RefUnwindSafe for VerificationError
impl Send for VerificationError
impl Sync for VerificationError
impl Unpin for VerificationError
impl UnsafeUnpin for VerificationError
impl UnwindSafe for VerificationError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read more