Enum near_primitives::errors::StorageError [−][src]
pub enum StorageError {
StorageInternalError,
TrieNodeMissing,
StorageInconsistentState(String),
}Expand description
Internal
Variants
StorageInternalError
Key-value db internal failure
TrieNodeMissing
Storage is PartialStorage and requested a missing trie node
StorageInconsistentState(String)
Tuple Fields
0: StringEither invalid state or key-value db is corrupted. For PartialStorage it cannot be corrupted. Error message is unreliable and for debugging purposes only. It’s also probably ok to panic in every place that produces this error. We can check if db is corrupted by verifying everything in the state trie.
Trait Implementations
Performs the conversion.
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for StorageError
impl Send for StorageError
impl Sync for StorageError
impl Unpin for StorageError
impl UnwindSafe for StorageError
Blanket Implementations
Mutably borrows from an owned value. Read more