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

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

A general error code

Variants

An I/O error

Base58 encoding error

Bech32 encoding 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

secp-related error

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

Unsupported witness version

Trait Implementations

impl Debug for Error
[src]

[src]

Formats the value using the given formatter. Read more

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

impl From<Error> for Error
[src]

[src]

Performs the conversion.

impl From<Error> for Error
[src]

[src]

Performs the conversion.

impl From<Error> for Error
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Error

impl Sync for Error