fastsim-core 1.0.4

Core FASTSim models for vehicle energy usage 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("{0}")]
    NinterpError(String),
    #[error("{0}")]
    Other(String),
}