pub enum BuilderError {
Show 17 variants InvalidFee, TooManyElements, UnableToInitializeTx, InvalidAmount, InvalidUTXOAddress, AnchorMismatch, UnableToRetrieveSpendInfo(usize), UnableToRetrieveOutputInfo(usize), InvalidOVKHashSeed(usize), FailedToBuildTx, FailedToSignTx, InvalidAddress, UnableToRetrieveTransparentSig(usize), UnableToRetrieveSaplingSig(usize), UnableToApplyTransparentSigs, UnableToApplySaplingSigs, FinalizationError,
}
Expand description

All the possible errors returned by the builder

Variants

InvalidFee

The specified fee is invalid

It’s likely that the fee is higher than the supported amount by Ledger

TooManyElements

Attempted to add too many elements to the transaction

This is a limitation of the ledger, where currently maximum 5 elements are accepted per type

UnableToInitializeTx

Error occured with initializing tx with ledger

InvalidAmount

Invalid note amount, most likely negative or more than maximum allowed

InvalidUTXOAddress

Script address of UTXO was not a public key

AnchorMismatch

Attempted to add spends with separate Merkle tree roots

UnableToRetrieveSpendInfo(usize)

Error occured when retrieving sapling spend data from ledger

UnableToRetrieveOutputInfo(usize)

Error occured when retrieving transparent output data from ledger

InvalidOVKHashSeed(usize)

Error occured while checking validity of spend

FailedToBuildTx

Error occured when building tx for ledger

FailedToSignTx

Error occured when signing tx with ledger

InvalidAddress

Attempted to add sapling output with invalid g_d

UnableToRetrieveTransparentSig(usize)

Failed to retrieve transparent signature

UnableToRetrieveSaplingSig(usize)

Failed to retrieve sapling signature

UnableToApplyTransparentSigs

Error occured when applying obtained transparent signatures

UnableToApplySaplingSigs

Error occured when applying obtained sapling signatures

FinalizationError

Error occured during finalization

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

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

Converts self into a target type. Read more

Causes self to use its Binary implementation when Debug-formatted.

Causes self to use its Display implementation when Debug-formatted. Read more

Causes self to use its LowerExp implementation when Debug-formatted. Read more

Causes self to use its LowerHex implementation when Debug-formatted. Read more

Causes self to use its Octal implementation when Debug-formatted.

Causes self to use its Pointer implementation when Debug-formatted. Read more

Causes self to use its UpperExp implementation when Debug-formatted. Read more

Causes self to use its UpperHex implementation when Debug-formatted. Read more

Returns the argument unchanged.

Calls U::from(self).

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

Pipes a value into a function that cannot ordinarily be called in suffix position. Read more

Pipes a trait borrow into a function that cannot normally be called in suffix position. Read more

Pipes a trait mutable borrow into a function that cannot normally be called in suffix position. Read more

Pipes a trait borrow into a function that cannot normally be called in suffix position. Read more

Pipes a trait mutable borrow into a function that cannot normally be called in suffix position. Read more

Pipes a dereference into a function that cannot normally be called in suffix position. Read more

Pipes a mutable dereference into a function that cannot normally be called in suffix position. Read more

Pipes a reference into a function that cannot ordinarily be called in suffix position. Read more

Pipes a mutable reference into a function that cannot ordinarily be called in suffix position. Read more

Should always be Self

Provides immutable access for inspection. Read more

Calls tap in debug builds, and does nothing in release builds.

Provides mutable access for modification. Read more

Calls tap_mut in debug builds, and does nothing in release builds.

Provides immutable access to the reference for inspection.

Calls tap_ref in debug builds, and does nothing in release builds.

Provides mutable access to the reference for modification.

Calls tap_ref_mut in debug builds, and does nothing in release builds.

Provides immutable access to the borrow for inspection. Read more

Calls tap_borrow in debug builds, and does nothing in release builds.

Provides mutable access to the borrow for modification.

Calls tap_borrow_mut in debug builds, and does nothing in release builds. Read more

Immutably dereferences self for inspection.

Calls tap_deref in debug builds, and does nothing in release builds.

Mutably dereferences self for modification.

Calls tap_deref_mut in debug builds, and does nothing in release builds. Read more

Converts the given value to a String. Read more

Attempts to convert self into a target type. 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.