pub enum Error {
Show 69 variants NotEnoughFunds { available: u64, available_disp: String, needed: u64, needed_disp: String, }, Fee(String), LibTX(String), Keychain(Error), Transaction(Error), ClientCallback(String), Secp(Error), CallbackImpl(&'static str), Backend(String), Restore, Format(String), Deser(Error), IO, Node, WalletComms(String), Hyper, Uri, Signature(String), APIEncryption(String), DuplicateTransactionId, WalletSeedExists(String), WalletSeedDoesntExist, WalletSeedDecryption, TransactionDoesntExist(String), TransactionNotCancellable(String), TransactionCancellationError(&'static str), TransactionDumpError(&'static str), TransactionAlreadyConfirmed, TransactionAlreadyReceived(String), TransactionBuildingNotCompleted(u32), InvalidBIP32Depth, AccountLabelAlreadyExists(String), UnknownAccountLabel(String), Committed(Error), SlateVersionParse, SlateSer, SlateDeser, SlateVersion(u16), Compatibility(String), KeychainDoesntExist, Lifecycle(String), InvalidKeychainMask, TorProcess(String), TorConfig(String), ED25519Key(String), PaymentProof(String), PaymentProofRetrieval(String), PaymentProofParsing(String), AddressDecoding(String), TransactionExpired, SQLiteError(String), InvalidBase58Character(char, usize), InvalidBase58Length, InvalidBase58Checksum, InvalidBase58Version, InvalidBase58Key, NumberParsingError, ClosedListener(String), Encryption, Decryption, EpicboxAddressParsingError(String), GenericError(String), RequestError(String), ArgumentError(String), IOError(String), CancelledError, EpicboxReconnectLimit, LibWallet(String), NotFoundErr(String),
}
Expand description

Error definition Wallet errors, mostly wrappers around underlying crypto or I/O errors.

Variants§

§

NotEnoughFunds

Fields

§available: u64

available funds

§available_disp: String

Display friendly

§needed: u64

Needed funds

§needed_disp: String

Display friendly

Not enough funds

§

Fee(String)

Fee error

§

LibTX(String)

LibTX Error

§

Keychain(Error)

Keychain error

§

Transaction(Error)

Transaction Error

§

ClientCallback(String)

API Error

§

Secp(Error)

Secp Error

§

CallbackImpl(&'static str)

Callback implementation error conversion

§

Backend(String)

Wallet backend error

§

Restore

Callback implementation error conversion

§

Format(String)

An error in the format of the JSON structures exchanged by the wallet

§

Deser(Error)

Other serialization errors

§

IO

IO Error

§

Node

Error when contacting a node through its API

§

WalletComms(String)

Error contacting wallet API

§

Hyper

Error originating from hyper.

§

Uri

Error originating from hyper uri parsing.

§

Signature(String)

Signature error

§

APIEncryption(String)

OwnerAPIEncryption

§

DuplicateTransactionId

Attempt to use duplicate transaction id in separate transactions

§

WalletSeedExists(String)

Wallet seed already exists

§

WalletSeedDoesntExist

Wallet seed doesn’t exist

§

WalletSeedDecryption

Wallet seed doesn’t exist

§

TransactionDoesntExist(String)

Transaction doesn’t exist

§

TransactionNotCancellable(String)

Transaction already rolled back

§

TransactionCancellationError(&'static str)

Cancellation error

§

TransactionDumpError(&'static str)

Cancellation error

§

TransactionAlreadyConfirmed

Attempt to repost a transaction that’s already confirmed

§

TransactionAlreadyReceived(String)

Transaction has already been received

§

TransactionBuildingNotCompleted(u32)

Attempt to repost a transaction that’s not completed and stored

§

InvalidBIP32Depth

Invalid BIP-32 Depth

§

AccountLabelAlreadyExists(String)

Attempt to add an account that exists

§

UnknownAccountLabel(String)

Reference unknown account label

§

Committed(Error)

Error from summing commitments via committed trait.

§

SlateVersionParse

Can’t parse slate version

§

SlateSer

Can’t serialize slate

§

SlateDeser

Can’t deserialize slate

§

SlateVersion(u16)

Unknown slate version

§

Compatibility(String)

Compatibility error between incoming slate versions and what’s expected

§

KeychainDoesntExist

Keychain doesn’t exist (wallet not openend)

§

Lifecycle(String)

Lifecycle Error

§

InvalidKeychainMask

Invalid Keychain Mask Error

§

TorProcess(String)

Tor Process error

§

TorConfig(String)

Tor Configuration Error

§

ED25519Key(String)

Generating ED25519 Public Key

§

PaymentProof(String)

Generating Payment Proof

§

PaymentProofRetrieval(String)

Retrieving Payment Proof

§

PaymentProofParsing(String)

Retrieving Payment Proof

§

AddressDecoding(String)

Decoding OnionV3 addresses to payment proof addresses

§

TransactionExpired

Transaction has expired it’s TTL

§

SQLiteError(String)

§

InvalidBase58Character(char, usize)

§

InvalidBase58Length

§

InvalidBase58Checksum

§

InvalidBase58Version

§

InvalidBase58Key

§

NumberParsingError

§

ClosedListener(String)

§

Encryption

§

Decryption

§

EpicboxAddressParsingError(String)

§

GenericError(String)

Other

§

RequestError(String)

§

ArgumentError(String)

§

IOError(String)

§

CancelledError

§

EpicboxReconnectLimit

§

LibWallet(String)

LibWallet Error

§

NotFoundErr(String)

Trait Implementations§

source§

impl Clone for Error

source§

fn clone(&self) -> Error

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Error

source§

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

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

impl Deserialize<'static> for Error

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'static>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for Error

source§

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

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

impl Error for Error

1.30.0 · 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<Error> for Error

source§

fn from(error: Error) -> Error

Converts to this type from the input type.
source§

impl From<Error> for Error

source§

fn from(error: Error) -> Error

Converts to this type from the input type.
source§

impl From<Error> for Error

source§

fn from(error: Error) -> Error

Converts to this type from the input type.
source§

impl From<Error> for Error

source§

fn from(error: Error) -> Error

Converts to this type from the input type.
source§

impl From<Error> for Error

source§

fn from(_error: Error) -> Error

Converts to this type from the input type.
source§

impl From<Error> for Error

source§

fn from(error: Error) -> Error

Converts to this type from the input type.
source§

impl From<Error> for Error

source§

fn from(error: Error) -> Error

Converts to this type from the input type.
source§

impl From<Error> for Error

source§

fn from(error: Error) -> Error

Converts to this type from the input type.
source§

impl PartialEq for Error

source§

fn eq(&self, other: &Error) -> 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.
source§

impl Serialize for Error

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Eq for Error

source§

impl StructuralPartialEq for Error

Auto Trait Implementations§

§

impl RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl UnwindSafe for Error

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> AsFail for T
where T: Fail,

§

fn as_fail(&self) -> &(dyn Fail + 'static)

Converts a reference to Self into a dynamic trait object of Fail.
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

impl<T> CloneAny for T
where T: Any + Clone,

§

fn clone_any(&self) -> Box<dyn CloneAny>

§

fn clone_any_send(&self) -> Box<dyn CloneAny + Send>
where T: Send,

§

fn clone_any_sync(&self) -> Box<dyn CloneAny + Sync>
where T: Sync,

§

fn clone_any_send_sync(&self) -> Box<dyn CloneAny + Send + Sync>
where T: Send + Sync,

§

impl<'a, T> DefaultFeatures<'a> for T
where T: 'a + Send + Sync + Clone,

§

fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a>>

Clone this value, and then immediately put it into a Box behind a trait object of this trait.
§

fn self_address_mut(&mut self) -> *mut ()

Returns the address of self. Read more
source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<E> Fail for E
where E: Error + Send + Sync + 'static,

§

fn name(&self) -> Option<&str>

Returns the “name” of the error. Read more
§

fn cause(&self) -> Option<&(dyn Fail + 'static)>

Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more
§

fn backtrace(&self) -> Option<&Backtrace>

Returns a reference to the Backtrace carried by this failure, if it carries one. Read more
§

fn context<D>(self, context: D) -> Context<D>
where D: Display + Send + Sync + 'static, Self: Sized,

Provides context for this failure. Read more
§

fn compat(self) -> Compat<Self>
where Self: Sized,

Wraps this failure in a compatibility wrapper that implements std::error::Error. 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 T
where 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.

§

impl<'a, T> NonSyncFeatures<'a> for T
where T: 'a + Clone,

§

fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a>>

Clone this value, and then immediately put it into a Box behind a trait object of this trait.
§

fn self_address_mut(&mut self) -> *mut ()

Returns the address of self. Read more
§

impl<T> SafeBorrow<T> for T
where T: ?Sized,

§

fn borrow_replacement(ptr: &T) -> &T

Given ptr, which was obtained from a prior call to Self::borrow(), return a value with the same nominal lifetime which is guaranteed to survive mutations to Self. Read more
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where 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 T
where 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 T
where 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<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
§

impl<T> DebugAny for T
where T: Any + Debug,

§

impl<T> Erased for T

§

impl<T> UnsafeAny for T
where T: Any,