pub type TrieError<L> = TrieError<TrieHash<L>, CError<L>>;
Expand description
TrieDB error over TrieConfiguration
trait.
Aliased Type§
enum TrieError<L> {
InvalidStateRoot(<<L as TrieLayout>::Hash as Hasher>::Out),
IncompleteDatabase(<<L as TrieLayout>::Hash as Hasher>::Out),
ValueAtIncompleteKey(Vec<u8>, u8),
DecoderError(<<L as TrieLayout>::Hash as Hasher>::Out, <<L as TrieLayout>::Codec as NodeCodec>::Error),
InvalidHash(<<L as TrieLayout>::Hash as Hasher>::Out, Vec<u8>),
}
Variants§
InvalidStateRoot(<<L as TrieLayout>::Hash as Hasher>::Out)
Attempted to create a trie with a state root not in the DB.
IncompleteDatabase(<<L as TrieLayout>::Hash as Hasher>::Out)
Trie item not found in the database,
ValueAtIncompleteKey(Vec<u8>, u8)
A value was found in the trie with a nibble key that was not byte-aligned. The first parameter is the byte-aligned part of the prefix and the second parameter is the remaining nibble.
DecoderError(<<L as TrieLayout>::Hash as Hasher>::Out, <<L as TrieLayout>::Codec as NodeCodec>::Error)
Corrupt Trie item.
InvalidHash(<<L as TrieLayout>::Hash as Hasher>::Out, Vec<u8>)
Hash is not value.
Trait Implementations
§impl<T, E> Error for TrieError<T, E>
impl<T, E> Error for TrieError<T, E>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()