pub enum MutinyError {
Show 46 variants AlreadyRunning, NotRunning, NetworkMismatch, NotFound, FundingTxCreationFailed, ConnectionFailed, IncorrectNetwork(Network), NonUniquePaymentHash, PaymentTimeout, InvoiceInvalid, InvoiceCreationFailed, ReserveAmountError, InsufficientBalance, LnUrlFailure, LspGenericError, LspFundingError, LspAmountTooHighError, LspConnectionError, SubscriptionClientNotConfigured, InvalidArgumentsError, RoutingFailed, PeerInfoParseFailed, ChannelCreationFailed, ChannelClosingFailed, PersistenceFailed { source: MutinyStorageError, }, ReadError { source: MutinyStorageError, }, LnDecodeError, SeedGenerationFailed, InvalidMnemonic, WalletOperationFailed, WalletSigningFailed, ChainAccessFailed, WalletSyncError, RapidGossipSyncError, DLCManagerError, PubkeyInvalid, IncorrectLnUrlFunction, BadAmountError, BitcoinPriceError, NostrError, IncorrectPassword, SamePassword, PayjoinCreateRequest, PayjoinValidateResponse(ValidationError), PayjoinConfigError, Other(Error),
}
Expand description

An error that possibly needs to be handled by the user.

Variants§

§

AlreadyRunning

Returned when trying to start Mutiny while it is already running.

§

NotRunning

Returned when trying to stop Mutiny while it is not running.

§

NetworkMismatch

Returned when Mutiny tries to startup with a different network than the one it was previously running on.

§

NotFound

Returned on any resource that is not found.

§

FundingTxCreationFailed

The funding transaction could not be created.

§

ConnectionFailed

A network connection has been closed.

§

IncorrectNetwork(Network)

The invoice or address is on a different network

§

NonUniquePaymentHash

Payment of the given invoice has already been initiated.

§

PaymentTimeout

Payment Timed out

§

InvoiceInvalid

The given invoice is invalid.

§

InvoiceCreationFailed

Invoice creation failed.

§

ReserveAmountError

We have enough balance to pay an invoice, but the this would take from our reserve amount which is not allowed.

§

InsufficientBalance

We do not have enough balance to pay the given amount.

§

LnUrlFailure

Failed to call on the given LNURL

§

LspGenericError

Could not make a request to the LSP.

§

LspFundingError

LSP indicated it could not fund the channel requested.

§

LspAmountTooHighError

LSP indicated the amount is too high to fund.

§

LspConnectionError

LSP indicated it was not connected to the client node.

§

SubscriptionClientNotConfigured

Subscription Client Not Configured

§

InvalidArgumentsError

Invalid Arguments were given

§

RoutingFailed

No route for the given target could be found.

§

PeerInfoParseFailed

A given peer info could not be parsed.

§

ChannelCreationFailed

A channel could not be opened.

§

ChannelClosingFailed

A channel could not be closed.

§

PersistenceFailed

Fields

Persistence failed.

§

ReadError

Fields

§

LnDecodeError

§

SeedGenerationFailed

A failure to generate a mnemonic seed.

§

InvalidMnemonic

User provided invalid mnemonic.

§

WalletOperationFailed

A wallet operation failed.

§

WalletSigningFailed

A signing operation failed.

§

ChainAccessFailed

A chain access operation failed.

§

WalletSyncError

A failure to sync the on-chain wallet

§

RapidGossipSyncError

An error with rapid gossip sync

§

DLCManagerError

A error with DLCs

§

PubkeyInvalid

Node pubkey given is invalid

§

IncorrectLnUrlFunction

§

BadAmountError

Error converting JS f64 value to Amount

§

BitcoinPriceError

Error getting the bitcoin price

§

NostrError

Error getting nostr data

§

IncorrectPassword

Incorrect password entered.

§

SamePassword

Cannot change password to the same password

§

PayjoinCreateRequest

Payjoin request creation failed.

§

PayjoinValidateResponse(ValidationError)

Payjoin response validation failed.

§

PayjoinConfigError

Payjoin configuration error

§

Other(Error)

Implementations§

Trait Implementations§

source§

impl Debug for MutinyError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for MutinyError

source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for MutinyError

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<CreateRequestError> for MutinyError

source§

fn from(_e: CreateRequestError) -> Self

Converts to this type from the input type.
source§

impl From<DecodeError> for MutinyError

source§

fn from(_e: DecodeError) -> Self

Converts to this type from the input type.
source§

impl From<DecodeError> for MutinyError

source§

fn from(_e: DecodeError) -> Self

Converts to this type from the input type.
source§

impl From<Error> for MutinyError

source§

fn from(_: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for MutinyError

source§

fn from(source: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for MutinyError

source§

fn from(_e: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for MutinyError

source§

fn from(_e: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for MutinyError

source§

fn from(_e: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for MutinyError

source§

fn from(_: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for MutinyError

source§

fn from(_e: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for MutinyError

source§

fn from(_e: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for MutinyError

source§

fn from(e: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for MutinyError

source§

fn from(_e: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for MutinyError

source§

fn from(_e: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for MutinyError

source§

fn from(e: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for MutinyError

source§

fn from(_: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for MutinyError

source§

fn from(_e: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for MutinyError

source§

fn from(_e: Error) -> Self

Converts to this type from the input type.
source§

impl From<FromUtf8Error> for MutinyError

source§

fn from(_e: FromUtf8Error) -> Self

Converts to this type from the input type.
source§

impl From<GraphSyncError> for MutinyError

source§

fn from(_e: GraphSyncError) -> Self

Converts to this type from the input type.
source§

impl From<InsertBlockNotMatchingError> for MutinyError

source§

fn from(_e: InsertBlockNotMatchingError) -> Self

Converts to this type from the input type.
source§

impl From<InsertTxError> for MutinyError

source§

fn from(_e: InsertTxError) -> Self

Converts to this type from the input type.
source§

impl From<InvalidLength> for MutinyError

source§

fn from(_: InvalidLength) -> Self

Converts to this type from the input type.
source§

impl From<InvalidShutdownScript> for MutinyError

source§

fn from(_e: InvalidShutdownScript) -> Self

Converts to this type from the input type.
source§

impl From<MutinyStorageError> for MutinyError

source§

fn from(source: MutinyStorageError) -> Self

Converts to this type from the input type.
source§

impl From<NewError<MutinyError>> for MutinyError

source§

fn from(e: NewError<MutinyError>) -> Self

Converts to this type from the input type.
source§

impl From<ParseError> for MutinyError

source§

fn from(_e: ParseError) -> Self

Converts to this type from the input type.
source§

impl From<ParseOrSemanticError> for MutinyError

source§

fn from(_e: ParseOrSemanticError) -> Self

Converts to this type from the input type.
source§

impl From<PaymentError> for MutinyError

source§

fn from(e: PaymentError) -> Self

Converts to this type from the input type.
source§

impl From<PeerHandleError> for MutinyError

source§

fn from(_e: PeerHandleError) -> Self

Converts to this type from the input type.
source§

impl<G> From<TryLockError<G>> for MutinyError

source§

fn from(_e: TryLockError<G>) -> Self

Converts to this type from the input type.
source§

impl From<TxSyncError> for MutinyError

source§

fn from(_e: TxSyncError) -> Self

Converts to this type from the input type.
source§

impl From<UnpadError> for MutinyError

source§

fn from(_e: UnpadError) -> Self

Converts to this type from the input type.
source§

impl From<ValidationError> for MutinyError

source§

fn from(e: ValidationError) -> Self

Converts to this type from the input type.
source§

impl PartialEq for MutinyError

source§

fn eq(&self, other: &Self) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more