Enum bitcoin::util::Error
[−]
[src]
pub enum Error { Io(Error), Base58(Error), Bech32(Error), ByteOrder(Error), BadNetworkMagic(u32, u32), BadNetworkMessage(String), DuplicateHash, BlockNotFound, ParseFailed, PrevHashNotFound, Secp256k1(Error), SpvBadTarget, SpvBadProofOfWork, Detail(String, Box<Error>), UnsupportedWitnessVersion(u8), }
A general error code
Variants
Io(Error)
An I/O error
Base58(Error)
Base58 encoding error
Bech32(Error)
Bech32 encoding 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
Secp256k1(Error)
secp-related error
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
UnsupportedWitnessVersion(u8)
Unsupported witness version
Trait Implementations
impl Debug for Error
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Display for Error
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Error for Error
[src]
fn cause(&self) -> Option<&Error>
[src]
The lower-level cause of this error, if any. Read more
fn description(&self) -> &str
[src]
A short description of the error. Read more