pub enum CalcError {
InvalidInput(String),
RulesetExpired {
id: String,
until: 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.
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)>
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 CalcError
impl RefUnwindSafe for CalcError
impl Send for CalcError
impl Sync for CalcError
impl Unpin for CalcError
impl UnsafeUnpin for CalcError
impl UnwindSafe for CalcError
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