Enum mutiny_core::error::MutinyError
source · 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
source: MutinyStorageError
Persistence failed.
ReadError
Fields
source: MutinyStorageError
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