pub enum CompositionTlaError {
Show 20 variants
InvalidTlcModel {
machine: String,
reason: String,
},
UnknownRouteSourceMachine {
composition: String,
route: String,
machine: String,
},
UnknownRouteTargetMachine {
composition: String,
route: String,
machine: String,
},
UnknownRouteEffect {
composition: String,
route: String,
machine: String,
effect: String,
},
UnknownRouteTargetInput {
composition: String,
route: String,
machine: String,
input: String,
},
UnknownRouteTargetSignal {
composition: String,
route: String,
machine: String,
signal: String,
},
UnknownObligationField {
composition: String,
protocol: String,
effect: String,
field: String,
},
UnknownRouteComponent {
composition: String,
component: &'static str,
},
UnknownWitnessMachine {
composition: String,
witness: String,
machine: String,
},
UnknownWitnessTransition {
composition: String,
witness: String,
machine: String,
transition: String,
},
HelperCycle {
machine: String,
cycle: String,
},
UnchangedFrameCollision {
composition: String,
collision: UnchangedFrameCollision,
},
MachineUnchangedFrameCollision {
machine: String,
collision: UnchangedFrameCollision,
},
Compile(String),
InvalidSuppliedMachine {
machine: String,
error: String,
},
DuplicateSuppliedMachine {
machine: String,
},
ShadowsCanonicalMachine {
machine: String,
},
CanonicalNamedTypeMismatch {
machine: String,
named_type: String,
reason: CanonicalNamedTypeMismatchKind,
},
DivergentNamedTypeBinding {
composition: String,
named_type: String,
},
InvalidCompositionForCatalog {
composition: String,
error: String,
},
}Variants§
InvalidTlcModel
UnknownRouteSourceMachine
A route’s from_machine is not a declared machine instance.
UnknownRouteTargetMachine
A route’s to.machine is not a declared machine instance.
UnknownRouteEffect
A route’s effect_variant is not a declared effect on its source machine.
UnknownRouteTargetInput
A route’s to.input_variant is not a declared input on its target machine.
UnknownRouteTargetSignal
A route’s to.input_variant is not a declared signal on its target machine.
UnknownObligationField
An obligation field on a handoff protocol is absent from the matching
effect payload (used to be papered over with an "unknown_<field>"
sentinel literal in the generated TLA record).
UnknownRouteComponent
A generated composition CASE operator over a route component could
not resolve a non-empty mapping for a composition that declares the
corresponding routes/machines. The previous behaviour laundered this
into an OTHER -> "unknown_*" sentinel, so a model that referenced an
undeclared actor/machine/effect/input still type-checked. Fail closed
instead: the operator’s OTHER catch-all is dropped and an empty
mapping for a populated composition is a hard codegen error.
UnknownWitnessMachine
A witness references a machine instance that is not part of the composition. The renderer must not fall back to an arbitrary schema, because that can make a liveness witness weaker than its catalog claim.
UnknownWitnessTransition
A witness references a transition that is not declared on its machine. Dropping the transition silently would let the generated witness omit required progress while still rendering.
HelperCycle
A machine declares a helper-call cycle, so no topological helper order exists. The previous fallback silently emitted the cyclic helpers in an arbitrary order, producing a model that references helpers before they are defined.
UnchangedFrameCollision
Two distinct UNCHANGED frames derived the same generated operator name. Disambiguating with a counter would be order-dependent and would hand one action a frame condition it did not have, so this fails the render.
MachineUnchangedFrameCollision
Two distinct UNCHANGED frames derived the same generated operator name while rendering a per-machine model.
Compile(String)
Lower-level TLA compiler construction/render failure (e.g. an unknown machine schema for a composition instance).
InvalidSuppliedMachine
A supplied machine schema fails its own validation.
DuplicateSuppliedMachine
A supplied catalog lists the same machine id twice.
ShadowsCanonicalMachine
A supplied machine reuses a canonical Meerkat machine id with a different schema. A caller’s catalog may include a canonical machine unchanged, but never a shadow of it.
CanonicalNamedTypeMismatch
A machine that shares a canonical machine’s id omits a canonical struct named-type binding, or binds a shared named type with a different generated domain shape.
DivergentNamedTypeBinding
Two machines of one composition bind the same named type with different generated domain shapes.
InvalidCompositionForCatalog
The composition does not validate against the supplied catalog.
Trait Implementations§
Source§impl Debug for CompositionTlaError
impl Debug for CompositionTlaError
Source§impl Display for CompositionTlaError
impl Display for CompositionTlaError
Source§impl Error for CompositionTlaError
impl Error for CompositionTlaError
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()