pub enum LightningError {
InvalidFormat(String),
InvalidInvoice(String),
InvalidPaymentHash(String),
InvalidPreimage(String),
InvalidNodeId(String),
InvalidChannelPoint(String),
InvalidRouteHint(String),
Bech32Error(String),
KeyDerivationError(String),
SignatureError(String),
InvoiceExpired,
AmountMismatch {
expected: u64,
actual: u64,
},
}Expand description
Errors that can occur during Lightning operations.
Variants§
InvalidFormat(String)
Invalid format (generic).
InvalidInvoice(String)
Invalid BOLT11 invoice format.
InvalidPaymentHash(String)
Invalid payment hash.
InvalidPreimage(String)
Invalid preimage.
InvalidNodeId(String)
Invalid node ID.
InvalidChannelPoint(String)
Invalid channel point.
InvalidRouteHint(String)
Invalid route hint.
Bech32Error(String)
Bech32 encoding/decoding error.
KeyDerivationError(String)
Key derivation error.
SignatureError(String)
Signature error.
InvoiceExpired
Invoice expired.
AmountMismatch
Amount mismatch.
Trait Implementations§
Source§impl Debug for LightningError
impl Debug for LightningError
Source§impl Display for LightningError
impl Display for LightningError
Source§impl Error for LightningError
impl Error for LightningError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for LightningError
impl RefUnwindSafe for LightningError
impl Send for LightningError
impl Sync for LightningError
impl Unpin for LightningError
impl UnwindSafe for LightningError
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
Mutably borrows from an owned value. Read more