altrios-core 1.0.0

ALTRIOS Core model for train simulation
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Custom error types

use thiserror::Error;

#[derive(Error, Debug, Clone)]
pub enum Error {
    #[error("`Init::init` failed: {0}")]
    InitError(String),
    #[error("`SerdeAPI` failed: {0}")]
    SerdeError(String),
    #[error("{0}")]
    SimulationError(String),
    // #[error(transparent)]
    // NinterpError(#[from] ninterp::error::Error),
    #[error("{0}")]
    Other(String),
}