altrios_core/
error.rs

1//! Custom error types
2
3use thiserror::Error;
4
5#[derive(Error, Debug, Clone)]
6pub enum Error {
7    #[error("`Init::init` failed: {0}")]
8    InitError(String),
9    #[error("`SerdeAPI` failed: {0}")]
10    SerdeError(String),
11    #[error("{0}")]
12    SimulationError(String),
13    // #[error(transparent)]
14    // NinterpError(#[from] ninterp::error::Error),
15    #[error("{0}")]
16    Other(String),
17}