use thiserror::Error;
#[derive(Debug, Error, Eq, PartialEq)]
#[non_exhaustive]
pub enum HexError {
#[error("hex output capacity exceeded")]
OutputCapacityExceeded,
#[error("odd-length hex input")]
OddLength,
#[error("uppercase hex input")]
Uppercase,
#[error("invalid hex input")]
InvalidCharacter,
}