pub enum Error {
Definition(String),
Validation(String),
Render(String),
Serialization(Error),
NoIntents,
NoTransitionTrigger(String),
NoStateMachine(String),
UndeclaredTransition {
action: String,
event: String,
},
AmbiguousTransition {
event: String,
},
VerbNotEnabled(String),
}Variants§
Definition(String)
Validation(String)
Render(String)
Serialization(Error)
NoIntents
Caller supplied an empty intents slice — no render target exists.
Returned by render entry points instead of a silent "unknown";
defined here so non-visual renderers can consume it. (D-08)
NoTransitionTrigger(String)
An action selected for transition derivation declares no
transition_trigger, so no event-to-target mapping exists.
NoStateMachine(String)
Transition derivation was requested for a service with no state machine.
UndeclaredTransition
An action’s transition_trigger names an event that no declared
transition carries — the EXEC-04 drift condition, by construction.
AmbiguousTransition
A single event fans out to more than one target state across its
transitions; a TransitionPlan cannot pick one unambiguously.
VerbNotEnabled(String)
A CRUD verb was requested for a service that has not opted into it
(.creatable(false), .updatable(false), or .deletable(false)).
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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()