[][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),
    OnionV3Address(OnionV3AddressError),
    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,
    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

OnionV3Address(OnionV3AddressError)

Onion V3 Address 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

GenericError(String)

Other

Trait Implementations

impl Clone for ErrorKind[src]

impl Debug for ErrorKind[src]

impl Deserialize<'static> for ErrorKind[src]

impl Display for ErrorKind[src]

impl Eq for ErrorKind[src]

impl Fail for ErrorKind[src]

impl From<ErrorKind> for Error[src]

impl PartialEq<ErrorKind> for ErrorKind[src]

impl Serialize for ErrorKind[src]

impl StructuralEq for ErrorKind[src]

impl StructuralPartialEq for ErrorKind[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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

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

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

impl<T> Erased for T

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

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

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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> UnsafeAny for T where
    T: Any

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