flowsemantics.errors package¶
Module contents¶
flowsemantics.errors - Exception hierarchy for FlowSemantics.
Layer: Contracts Module: flowsemantics.errors Since: 0.1.0 Implements: SPEC.md section 5.2 naming (StructureError, PortabilityError,
EvaluationError, FinalizationBudgetExceeded)
Depends on: stdlib only Used by: configuration, execution, finalization, portable See also: SPEC.md sections 4.3, 10.9, 11.4, 16.7
Notes
All library-raised exceptions derive from FlowSemanticsError so callers can distinguish library contract violations from application exceptions.
These are NOT outcome exceptions. An exception raised inside a user condition or action is an application exception and is handled by the Section 11 catch rules, never by this hierarchy.
- exception flowsemantics.errors.AsyncOnlyContractError[source]¶
Bases:
FlowSemanticsErrorRaised when execute() is called on an async-only contract (SPEC 11.7).
- exception flowsemantics.errors.EvaluationError[source]¶
Bases:
FlowSemanticsErrorRaised for an evaluation-time failure not otherwise classified.
- exception flowsemantics.errors.FinalizationBudgetExceeded[source]¶
Bases:
FlowSemanticsErrorRecorded when cleanup exceeds its WithFinallyTimeout budget (SPEC 16.7).
- exception flowsemantics.errors.FlowSemanticsError[source]¶
Bases:
ExceptionBase class for every exception raised by the FlowSemantics library.
- exception flowsemantics.errors.PortabilityError[source]¶
Bases:
FlowSemanticsErrorRaised by export_portable() on a NATIVE contract (SPEC 4.4).
- exception flowsemantics.errors.StructureError[source]¶
Bases:
FlowSemanticsErrorRaised by compile() when the flow structure is invalid (SPEC 4.3).