pub enum DeonticError {
FailedToAddTeloid,
FailedToAddEdge(usize, usize),
GraphNotFrozen,
GraphIsFrozen,
GraphIsCyclic,
TeloidNotFound {
id: TeloidID,
},
InconclusiveVerdict,
NoRelevantNormsFound,
MissingContext,
GraphError(GraphError),
}Expand description
Errors related to the Deontic Inference process within the Effect Ethos.
Variants§
FailedToAddTeloid
Failed to add a new teloid to the graph.
FailedToAddEdge(usize, usize)
Failed to add edge to the graph.
GraphNotFrozen
An operation was attempted on a graph that was not frozen. Deontic inference requires a static, immutable graph.
GraphIsFrozen
An mutation operation was attempted on a graph that was frozen. Mutation requires an unfrozen graph
GraphIsCyclic
The TeloidGraph is invalid because it contains a cycle, which would lead to infinite loops in reasoning.
TeloidNotFound
A TeloidID exists in the graph or tag index but not in the TeloidStore, indicating a critical state inconsistency.
InconclusiveVerdict
The final set of active norms was empty or otherwise unable to produce a conclusive verdict.
NoRelevantNormsFound
No applicable norms were found for a given action.
MissingContext
The CausalState is missing a context, which is required for deontic evaluation.
GraphError(GraphError)
Wraps a lower-level error from the ultragraph crate.
Trait Implementations§
Source§impl Clone for DeonticError
impl Clone for DeonticError
Source§fn clone(&self) -> DeonticError
fn clone(&self) -> DeonticError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more