use rst_common::with_errors::thiserror::{self, Error};
#[derive(Debug, Error, PartialEq)]
pub enum CommonError {
#[error("hex: unable to parse given hex: `{0}`")]
ParseHexError(String),
#[error("unable parse value: `{0}`")]
ParseValueError(String),
#[error("json: unable to parse given hex: `{0}`")]
BuildJSONError(String),
#[error("unknown: something unknown goes went wrong")]
UnknownError,
}