[][src]Enum grin_wallet_libwallet::ErrorKind

pub enum ErrorKind {
    NotEnoughFunds {
        available: u64,
        available_disp: String,
        needed: u64,
        needed_disp: String,
    },
    Fee(String),
    LibTX(ErrorKind),
    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),
    DuplicateTransactionId,
    WalletSeedExists,
    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),
    GenericError(String),
}

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

Variants

NotEnoughFunds

Not enough funds

Fields of NotEnoughFunds

available: u64

available funds

available_disp: String

Display friendly

needed: u64

Needed funds

needed_disp: String

Display friendly

Fee(String)

Fee error

LibTX(ErrorKind)

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

DuplicateTransactionId

Attempt to use duplicate transaction id in separate transactions

WalletSeedExists

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

GenericError(String)

Other

Trait Implementations

impl PartialEq<ErrorKind> for ErrorKind[src]

impl Eq for ErrorKind[src]

impl From<ErrorKind> for Error[src]

impl Clone for ErrorKind[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for ErrorKind[src]

impl Display for ErrorKind[src]

impl Serialize for ErrorKind[src]

impl Deserialize<'static> for ErrorKind[src]

impl Fail for ErrorKind[src]

fn context<D>(self, context: D) -> Context<D> where
    D: Display + Send + Sync + 'static, 
[src]

Provides context for this failure. Read more

fn compat(self) -> Compat<Self>[src]

Wraps this failure in a compatibility wrapper that implements std::error::Error. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

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

impl<E> Fail for E where
    E: 'static + Error + Send + Sync
[src]

fn name(&self) -> Option<&str>[src]

Returns the "name" of the error. Read more

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

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>[src]

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, 
[src]

Provides context for this failure. Read more

fn compat(self) -> Compat<Self>[src]

Wraps this failure in a compatibility wrapper that implements std::error::Error. Read more

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

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

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

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

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

impl<T> UnsafeAny for T where
    T: Any

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> AsFail for T where
    T: Fail
[src]

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