Enum stacks_common::address::Error
source · pub enum Error {
InvalidCrockford32,
InvalidVersion(u8),
EmptyData,
BadByte(u8),
BadChecksum(u32, u32),
InvalidLength(usize),
TooShort(usize),
Other(String),
}Variants§
InvalidCrockford32
InvalidVersion(u8)
EmptyData
BadByte(u8)
Invalid character encountered
BadChecksum(u32, u32)
Checksum was not correct (expected, actual)
InvalidLength(usize)
The length (in bytes) of the object was not correct Note that if the length is excessively long the provided length may be an estimate (and the checksum step may be skipped).
TooShort(usize)
Checked data was less than 4 bytes
Other(String)
Any other error
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
source§fn description(&self) -> &'static str
fn description(&self) -> &'static str
👎Deprecated since 1.42.0: use the Display impl or to_string()