pub enum ErrorKind {
Show 15 variants
FileNotFound,
ParseError,
SchemaViolation,
InvalidReference,
DuplicateId,
InvalidValue,
CycleDetected,
DimensionMismatch,
BusinessRuleViolation,
WarmStartIncompatible,
ResumeIncompatible,
NotImplemented,
UnusedEntity,
ModelQuality,
SemanticAmbiguity,
}Expand description
Categorises the kind of validation problem found.
Variants§
FileNotFound
Required file is missing from the case directory.
ParseError
File exists but cannot be parsed (invalid JSON syntax, unreadable Parquet header).
SchemaViolation
File parses successfully but does not conform to its expected schema (missing required field, wrong type, value out of valid range).
InvalidReference
A cross-entity foreign-key reference points to a non-existent entity.
DuplicateId
Two entities in the same registry share the same ID.
InvalidValue
A field value falls outside its valid range or violates a value constraint.
CycleDetected
A directed graph (e.g., hydro cascade) contains a cycle.
DimensionMismatch
A cross-file coverage check fails (e.g., missing inflow params for a hydro).
BusinessRuleViolation
A domain-specific business rule is violated.
WarmStartIncompatible
A warm-start policy is structurally incompatible with the current system.
ResumeIncompatible
A resume state is incompatible with the current run configuration.
NotImplemented
A feature that is used in the input files is not yet implemented.
UnusedEntity
An entity is defined but appears to be inactive (warning only).
ModelQuality
A statistical quality concern in the input model (warning only).
SemanticAmbiguity
A valid construct whose semantics are ambiguous or stage-dependent
(warning only); surfaces the thermal_generation / anticipated_decision
stage-drift case.
Implementations§
Trait Implementations§
impl Copy for ErrorKind
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnsafeUnpin for ErrorKind
impl UnwindSafe for ErrorKind
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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> ⓘ
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> ⓘ
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