Enum bitcoin::util::Error [] [src]

pub enum Error {
    Io(Error),
    ByteOrder(Error),
    BadNetworkMagic(u32u32),
    BadNetworkMessage(String),
    DuplicateHash,
    BlockNotFound,
    ParseFailed,
    PrevHashNotFound,
    SpvBadTarget,
    SpvBadProofOfWork,
    Detail(StringBox<Error>),
}

A general error code

Variants

An I/O error

Error from the byteorder crate

Network magic was not what we expected

Network message was unrecognized

An object was attempted to be added twice

Some operation was attempted on a block (or blockheader) that doesn't exist

Parsing error

An object was added but it does not link into existing history

The target field of a block header did not match the expected difficulty

The header hash is not below the target

Error propagated from subsystem

Trait Implementations

impl Debug for Error
[src]

[src]

Formats the value using the given formatter.

impl Display for Error
[src]

[src]

Formats the value using the given formatter. Read more

impl Error for Error
[src]

[src]

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

[src]

A short description of the error. Read more