Enum stacks_common::deps_common::bitcoin::util::Error
source · pub enum Error {
Secp256k1(Secp256k1Error),
Serialize(Error),
Network(Error),
SpvBadProofOfWork,
SpvBadTarget,
}
Expand description
A general error code, other errors should implement conversions to/from this if appropriate.
Variants§
Secp256k1(Secp256k1Error)
secp-related error
Serialize(Error)
Serialization error
Network(Error)
Network error
SpvBadProofOfWork
The header hash is not below the target
SpvBadTarget
The target
field of a block header did not match the expected difficulty
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()