pub enum ParseError {
InvalidBolt11(ParseOrSemanticError),
InvalidBolt12(Bolt12ParseError),
InvalidOnChain(ParseError),
WrongNetwork,
InconsistentInstructions(&'static str),
InvalidInstructions(&'static str),
UnknownPaymentInstructions,
UnknownRequiredParameter,
HrnResolutionError(&'static str),
InstructionsExpired,
}
Expand description
An error when parsing payment instructions into PaymentInstructions
.
Variants§
InvalidBolt11(ParseOrSemanticError)
An invalid lightning BOLT 11 invoice was encountered
InvalidBolt12(Bolt12ParseError)
An invalid lightning BOLT 12 offer was encountered
InvalidOnChain(ParseError)
An invalid on-chain address was encountered
WrongNetwork
The payment instructions encoded instructions for a network other than the one specified.
InconsistentInstructions(&'static str)
Different parts of the payment instructions were inconsistent.
A developer-readable error string is provided, though you may or may not wish to provide this directly to users.
InvalidInstructions(&'static str)
The instructions were invalid due to a semantic error.
A developer-readable error string is provided, though you may or may not wish to provide this directly to users.
UnknownPaymentInstructions
The payment instructions did not appear to match any known form of payment instructions.
UnknownRequiredParameter
The BIP 321 bitcoin: URI included unknown required parameter(s)
HrnResolutionError(&'static str)
The call to HrnResolver::resolve_hrn
failed with the contained error.
InstructionsExpired
The payment instructions have expired and are no longer payable.