pub enum Error {
Show 32 variants
FeeEstimationFailed(String),
FeeEstimationUnavailable,
NoSpendableUtxos,
AlreadyStarted,
InvalidConfig(String),
UnsupportedOnchain,
UnknownFeeIndex(u32),
Json(Error),
AmountConversion(Error),
Database(Error),
Wallet(String),
BitcoinRpc(Error),
Esplora(String),
Bip32(Error),
KeyDerivation(KeyError),
CouldNotSign,
Path,
Io(Error),
KvStore(Error),
VoutNotFound,
SendIntentNotFound(Uuid),
SendBatchNotFound(Uuid),
DuplicateQuoteId(String),
BatchFeeTooHigh {
actual_fee: u64,
max_fee: u64,
},
EstimatedFeeTooHigh {
estimated_fee: u64,
max_fee: u64,
},
NoValidFeeAllocation,
DustOutput {
amount: u64,
dust_limit: u64,
},
AmountBelowMinimumSend {
amount: u64,
min: u64,
},
BatchAssignmentMissing {
batch_id: Uuid,
intent_id: Uuid,
},
ReceiveIntentNotFound(Uuid),
ReceiveAddressNotFound(String),
BdkPersist,
}Expand description
CDK BDK onchain backend error
Variants§
FeeEstimationFailed(String)
Fee estimation failed
Fee estimation unavailable
NoSpendableUtxos
Wallet has no spendable UTXOs available for an onchain quote
AlreadyStarted
Start called but tasks are already running
InvalidConfig(String)
Invalid backend configuration
UnsupportedOnchain
Unsupported payment type for onchain backend
UnknownFeeIndex(u32)
Wallet selected a fee_index outside the configured BDK fee options.
Json(Error)
JSON error
AmountConversion(Error)
Amount conversion error
Database(Error)
Database error
Wallet(String)
Wallet error
BitcoinRpc(Error)
Bitcoin RPC error
Esplora(String)
Esplora error
Bip32(Error)
Bip32 key derivation error
KeyDerivation(KeyError)
Key derivation error
CouldNotSign
Could not sign transaction
Path
Path error
Io(Error)
IO error
KvStore(Error)
KV Store error
VoutNotFound
Could not find matching output vout in transaction
SendIntentNotFound(Uuid)
Send intent not found in storage
SendBatchNotFound(Uuid)
Send batch not found in storage
DuplicateQuoteId(String)
Send intent with quote id already exists in storage
BatchFeeTooHigh
Batch fee exceeds the combined max fee of all included intents
Fields
EstimatedFeeTooHigh
Current fee estimate exceeds the max fee accepted by a melt quote.
Fields
NoValidFeeAllocation
No valid fee allocation exists for the batch
DustOutput
Requested recipient output is below the dust limit for its script type
Fields
AmountBelowMinimumSend
Requested send amount is below the backend’s configured minimum.
Fields
BatchAssignmentMissing
Batch record is missing an output assignment for one of its member intents.
This indicates a persistence invariant violation: every intent ID listed in a Signed/Broadcast batch must have a corresponding assignment entry.
Fields
ReceiveIntentNotFound(Uuid)
Receive intent not found in storage
ReceiveAddressNotFound(String)
Receive address not found in storage
BdkPersist
Database
Implementations§
Source§impl Error
impl Error
Sourcepub fn is_transient(&self) -> bool
pub fn is_transient(&self) -> bool
Returns true when the error is a transient network / upstream
condition that is expected to resolve on retry.
This is used by the sync supervisor to decide whether to continue retrying on the next tick (transient) or to treat the failure as part of the backoff/restart policy (non-transient).
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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()