pub enum Error {
Show 26 variants AccountAliasAlreadyExists(String), AccountNotFound(String), AddressNotFoundInAccount(String), BackupError(&'static str), Block(Error), BlockDtoError(DtoError), BurningOrMeltingFailed(String), ClientError(Box<Error>), ConsolidationRequired(usizeu16), CryptoError(Error), CustomInputError(String), FailedToGetRemainder, InsufficientFunds(u64u64), InvalidCoinType(u32u32), InvalidMnemonic(String), InvalidOutputKind(String), IoError(Error), JsonError(Error), MintingFailed(String), MissingParameter(&'static str), NftNotFoundInUnspentOutputs, NoOutputsToConsolidate { available_outputs: usize, consolidation_threshold: usize, }, RecordNotFound(String), Storage(String), StorageIsEncrypted, TaskJoinError(JoinError),
}
Expand description

The wallet error type.

Variants

AccountAliasAlreadyExists(String)

Account alias must be unique.

AccountNotFound(String)

Account not found

AddressNotFoundInAccount(String)

Address not found in account

BackupError(&'static str)

Errors during backup creation or restoring

Block(Error)

Error from block crate.

BlockDtoError(DtoError)

Block dtos error

BurningOrMeltingFailed(String)

Burning or melting failed

ClientError(Box<Error>)

iota.rs error.

ConsolidationRequired(usizeu16)

Funds are spread over too many outputs

CryptoError(Error)

Crypto.rs error

CustomInputError(String)

Custom input error

FailedToGetRemainder

Failed to get remainder

InsufficientFunds(u64u64)

Insufficient funds to send transaction.

InvalidCoinType(u32u32)

Invalid coin type, all accounts need to have the same coin type

InvalidMnemonic(String)

Invalid mnemonic error

InvalidOutputKind(String)

Invalid output kind.

IoError(Error)

IO error. (storage, backup, restore)

JsonError(Error)

serde_json error.

MintingFailed(String)

Minting failed

MissingParameter(&'static str)

Missing parameter.

NftNotFoundInUnspentOutputs

Nft not found in unspent outputs

NoOutputsToConsolidate

Fields

available_outputs: usize

The available outputs for consolidation.

consolidation_threshold: usize

The consolidation threshold.

No outputs available for consolidating

RecordNotFound(String)

Record not found

Storage(String)

Storage access error.

StorageIsEncrypted

Can’t use AccountManager API because the storage is encrypted

TaskJoinError(JoinError)

Tokio task join error

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

For maximum effectiveness, this needs to be called as a method to benefit from Rust’s automatic dereferencing of method receivers. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more