af_utilities/types/
errors.rs

1
2
3
4
5
6
7
8
9
10
11
use thiserror::Error;

#[derive(Clone, Debug, Error)]
pub enum Error {
    #[error("Overflow when converting types")]
    Overflow,
    #[error("Underflow when converting types")]
    Underflow,
    #[error("Error converting string {0} to U256")]
    ParseStringToU256(String),
}