prople_crypto/
errors.rs

1//! `errors` provides base error which is [`CommonError`]
2use rst_common::with_errors::thiserror::{self, Error};
3
4/// `CommonError` this kind of error types used for all common errors
5#[derive(Debug, Error, PartialEq)]
6pub enum CommonError {
7    #[error("hex: unable to parse given hex: `{0}`")]
8    ParseHexError(String),
9
10    #[error("unable parse value: `{0}`")]
11    ParseValueError(String),
12
13    #[error("json: unable to parse given hex: `{0}`")]
14    BuildJSONError(String),
15
16    #[error("unknown: something unknown goes went wrong")]
17    UnknownError,
18}