pub enum MonteCarloError {
CsvParse {
line: usize,
column: String,
message: String,
},
MissingField {
field: String,
hint: String,
},
InvalidValue {
field: String,
value: String,
expected: String,
},
IoError {
path: String,
message: String,
},
InsufficientData {
provided: usize,
required: usize,
context: String,
},
ConvergenceFailure {
iterations: usize,
achieved_precision: f64,
target_precision: f64,
},
InvalidModelParams {
param: String,
value: f64,
constraint: String,
},
InvalidCorrelationMatrix {
reason: String,
},
InvalidDate {
value: String,
expected_format: String,
},
InvalidConfidenceLevel {
value: f64,
},
NumericalError {
operation: String,
message: String,
},
EmptyData {
context: String,
},
}Expand description
Errors that can occur during Monte Carlo simulation
Variants§
CsvParse
CSV parsing error
Fields
MissingField
Required field missing from data
InvalidValue
Invalid value in data
Fields
IoError
IO error during file operations
InsufficientData
Insufficient data for analysis
Fields
ConvergenceFailure
Simulation did not converge
Fields
InvalidModelParams
Invalid model parameters
InvalidCorrelationMatrix
Correlation matrix is not valid
InvalidDate
Invalid date format or range
InvalidConfidenceLevel
Confidence level out of valid range
NumericalError
Numerical computation error
EmptyData
Empty data provided
Trait Implementations§
Source§impl Clone for MonteCarloError
impl Clone for MonteCarloError
Source§fn clone(&self) -> MonteCarloError
fn clone(&self) -> MonteCarloError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MonteCarloError
impl Debug for MonteCarloError
Source§impl Display for MonteCarloError
impl Display for MonteCarloError
Source§impl Error for MonteCarloError
impl Error for MonteCarloError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for MonteCarloError
impl RefUnwindSafe for MonteCarloError
impl Send for MonteCarloError
impl Sync for MonteCarloError
impl Unpin for MonteCarloError
impl UnwindSafe for MonteCarloError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more