# Enum ethcore::snapshot::Error [−] [src]

    pub enum Error {
        InvalidStartingBlock(BlockId),
        BlockNotFound(H256),
        IncompleteChain,
        WrongStateRoot(H256, H256),
        WrongBlockHash(u64, H256, H256),
        TooManyBlocks(u64, u64),
        OldBlockPrunedDB,
        MissingCode(Vec<H256>),
        UnrecognizedCodeState(u8),
        RestorationAborted,
        Trie(TrieError),
        Decoder(DecoderError),
        Io(Error),
    }

Snapshot-related errors.

## Variants

`InvalidStartingBlock(BlockId)`

Invalid starting block for snapshot.

`BlockNotFound(H256)`

Block not found.

`IncompleteChain`

Incomplete chain.

`WrongStateRoot(H256, H256)`

Best block has wrong state root.

`WrongBlockHash(u64, H256, H256)`

Wrong block hash.

`TooManyBlocks(u64, u64)`

Too many blocks contained within the snapshot.

`OldBlockPrunedDB`

Old starting block in a pruned database.

`MissingCode(Vec<H256>)`

Missing code.

`UnrecognizedCodeState(u8)`

Unrecognized code encoding.

`RestorationAborted`

Restoration aborted.

`Trie(TrieError)`

Trie error.

`Decoder(DecoderError)`

Decoder error.

`Io(Error)`

Io error.

## Trait Implementations

### `impl Debug for Error`
[src]

#### `fn fmt(&self, __arg_0: &mut Formatter) -> Result`

Formats the value using the given formatter.

### `impl Display for Error`
[src]

#### `fn fmt(&self, f: &mut Formatter) -> Result`

Formats the value using the given formatter.

### `impl From<Error> for Error`
[src]

#### `fn from(err: Error) -> Self`

Performs the conversion.

### `impl From<TrieError> for Error`
[src]

#### `fn from(err: TrieError) -> Self`

Performs the conversion.

### `impl From<DecoderError> for Error`
[src]

#### `fn from(err: DecoderError) -> Self`

Performs the conversion.

### `impl<E> From<Box<E>> for Error where Error: From<E>`
[src]

#### `fn from(err: Box<E>) -> Self`

Performs the conversion.

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result
+
  Collapse/expand all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)