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

Io(Error)

An I/O error

ByteOrder(Error)

Order from the byteorder crate

BadNetworkMagic(u32u32)

Network magic was not what we expected

BadNetworkMessage(String)

Network message was unrecognized

DuplicateHash

An object was attempted to be added twice

BlockNotFound

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

ParseFailed

Parsing error

PrevHashNotFound

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

SpvBadTarget

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

SpvBadProofOfWork

The header hash is not below the target

Detail(StringBox<Error>)

Error propagated from subsystem

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<()Error>

Formats the value using the given formatter.