pub enum SimulationError {
Show 14 variants
InvalidConfiguration(String),
EmptyPopulation,
NoStatutes,
Cancelled,
Io(Error),
Serialization(Error),
InvalidDateRange,
TemporalConfig(String),
PopulationGeneration(String),
Checkpoint(String),
ConfigurationError(String),
ExecutionError(String),
InvalidPopulation(String),
InvalidParameter(String),
}Expand description
Errors that can occur during simulation.
Variants§
InvalidConfiguration(String)
Invalid configuration provided
EmptyPopulation
Population is empty
NoStatutes
No statutes provided
Cancelled
Simulation was cancelled
Io(Error)
I/O error during export/import
Serialization(Error)
Serialization error
InvalidDateRange
Invalid date range
TemporalConfig(String)
Temporal configuration error
PopulationGeneration(String)
Population generation error
Checkpoint(String)
Checkpoint error
ConfigurationError(String)
Configuration error
ExecutionError(String)
Execution error
InvalidPopulation(String)
Invalid population
InvalidParameter(String)
Invalid parameter or value
Trait Implementations§
Source§impl Debug for SimulationError
impl Debug for SimulationError
Source§impl Display for SimulationError
impl Display for SimulationError
Source§impl Error for SimulationError
impl Error for SimulationError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Error> for SimulationError
impl From<Error> for SimulationError
Auto Trait Implementations§
impl Freeze for SimulationError
impl !RefUnwindSafe for SimulationError
impl Send for SimulationError
impl Sync for SimulationError
impl Unpin for SimulationError
impl !UnwindSafe for SimulationError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more