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)Order from the byteorder crate
BadNetworkMagic(u32, u32)Network magic was not what we expected
BadNetworkMessage(String)Network message was unrecognized
DuplicateHashAn object was attempted to be added twice
BlockNotFoundSome operation was attempted on a block (or blockheader) that doesn't exist
ParseFailedParsing error
PrevHashNotFoundAn object was added but it does not link into existing history
SpvBadTargetThe target field of a block header did not match the expected difficulty
SpvBadProofOfWorkThe header hash is not below the target
Detail(String, Box<Error>)Error propagated from subsystem