pub enum LmsError {
StrategyExecutionFailure {
pipeline_step: String,
context: String,
reason: String,
},
MissingTrait {
pipeline_step: String,
trait_key: String,
reason: String,
},
InvalidTag {
pipeline_step: String,
tag: String,
reason: String,
},
ResolutionFailed {
pipeline_step: String,
tag: String,
reason: String,
},
IntegrityViolation {
pipeline_step: String,
context: String,
reason: String,
},
SecurityFault {
pipeline_step: String,
context: String,
reason: String,
},
PersistenceFault {
pipeline_step: String,
context: String,
reason: String,
},
RuleSynthesisFailure {
pipeline_step: String,
context: String,
reason: String,
},
ResourceResolutionFailure {
pipeline_step: String,
context: String,
reason: String,
},
ExtensionMappingFailure {
pipeline_step: String,
context: String,
reason: String,
},
}Expand description
The universal error type for the Bistun LMS pipeline.
Time: O(1) (Definition) | Space: O(1)
§Logic Trace (Internal)
- Associates standard pipeline failures with explicit context fields.
- Derives standard
std::error::Errorandstd::fmt::Displayviathiserror.
§Examples
use crate::bistun_core::LmsError;
let err = LmsError::MissingTrait {
pipeline_step: "Phase 2: Aggregation".to_string(),
trait_key: "MORPHOLOGY_TYPE".to_string(),
reason: "Golden Set baseline breached".to_string(),
};
assert_eq!(
err.to_string(),
"[Phase 2: Aggregation] Missing Trait (MORPHOLOGY_TYPE): Golden Set baseline breached"
);Variants§
StrategyExecutionFailure
Raised when a linguistic algorithm fails to process the input string.
Fields
MissingTrait
Raised when the CapabilityManifest lacks a required trait during resolution.
Fields
InvalidTag
Raised when a BCP 47 tag is mathematically invalid or unparseable.
Fields
ResolutionFailed
Raised when the Taxonomic Engine fails to resolve a locale, exhausting the fallback chain.
Fields
IntegrityViolation
Raised when a capability manifest fails structural or typological integrity checks.
Fields
SecurityFault
Raised when registry signature verification or WORM state fails.
Fields
PersistenceFault
Raised when the WORM snapshot cannot be read or contains a structural persistence breach.
Fields
RuleSynthesisFailure
Raised when Phase 2 (Aggregation) fails to synthesize algorithmic rules due to unresolvable conflicts.
Fields
ResourceResolutionFailure
Raised when Phase 2.5 (Resource Bridge) cannot map an abstract Resource ID to a physical URI.
Fields
ExtensionMappingFailure
Raised when Phase 3 (Override) encounters a malformed or unsupported BCP 47 extension subtag.
Trait Implementations§
Source§impl Error for LmsError
impl Error for LmsError
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()
impl Eq for LmsError
impl StructuralPartialEq for LmsError
Auto Trait Implementations§
impl Freeze for LmsError
impl RefUnwindSafe for LmsError
impl Send for LmsError
impl Sync for LmsError
impl Unpin for LmsError
impl UnsafeUnpin for LmsError
impl UnwindSafe for LmsError
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.