1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
use diagnostic::{DiagnosticError, DiagnosticLevel};
use crate::{VosError, VosErrorKind};
#[cfg(feature = "bigdecimal")]
mod for_bigdecimal;
#[cfg(feature = "num")]
mod for_num;
#[cfg(feature = "peginator")]
mod for_peginator;
impl From<DiagnosticError> for VosError {
fn from(e: DiagnosticError) -> Self {
Self { kind: Box::new(VosErrorKind::RuntimeError(e.to_string())), level: DiagnosticLevel::Error }
}
}