xcell-errors 0.1.3

Error handlers for xcell
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use num::bigint::ParseBigIntError;
pub use num::{BigInt, FromPrimitive, ToPrimitive, Zero};

use crate::{XError, XErrorKind};

impl From<ParseBigIntError> for XError {
    fn from(value: ParseBigIntError) -> Self {
        Self {
            kind: Box::new(XErrorKind::SyntaxError { message: value.to_string() }),
            path: None,
            position: None,
            source: None,
        }
    }
}