Enum bitcoin::util::Error
[−]
[src]
pub enum Error { Io(Error), ByteOrder(Error), BadNetworkMagic(u32, u32), BadNetworkMessage(String), DuplicateHash, BlockNotFound, ParseFailed, PrevHashNotFound, SpvBadTarget, SpvBadProofOfWork, Detail(String, Box<Error>), }
A general error code
Variants
Io(Error)
An I/O error
ByteOrder(Error)
Error from the byteorder
crate
BadNetworkMagic(u32, u32)
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(String, Box<Error>)
Error propagated from subsystem
Trait Implementations
impl Debug for Error
[src]
impl Display for Error
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more