pub enum CalcError {
InvalidInput(String),
RulesetExpired {
id: String,
until: String,
},
RulesetNotYetEffective {
id: String,
from: String,
},
RulesetUndetermined {
id: String,
empowerment: String,
},
Overflow(String),
FactorNotFound(String),
MethodologyMismatch(String),
NotImplemented {
methodology: String,
reason: String,
},
CrossFieldViolation(String),
CanonicalizeError(String),
}Variants§
InvalidInput(String)
RulesetExpired
The ruleset’s effective period has ended; a newer version is required.
RulesetNotYetEffective
The ruleset’s effective period has a known start date that has not arrived yet.
RulesetUndetermined
The ruleset has no application date at all, because the instrument that
would date it has not entered into force. Distinct from
RulesetNotYetEffective: that one knows
the date and is waiting for it, this one cannot know it yet.
Overflow(String)
A computation overflowed to a non-finite value despite finite, in-range inputs — a legally cited figure must never silently become Infinity.
FactorNotFound(String)
The requested activity UUID is not present in the injected factor dataset.
MethodologyMismatch(String)
The supplied data cannot be processed by this methodology.
NotImplemented
The methodology is defined but not yet implemented (gate: data license / delegated act).
CrossFieldViolation(String)
A parameter combination that is internally incoherent per the ruleset.
CanonicalizeError(String)
JSON canonicalization failed — inputs or outputs could not be serialized.
Trait Implementations§
Source§impl Error for CalcError
impl Error for CalcError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()