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: FlowSemanticsError

Raised when execute() is called on an async-only contract (SPEC 11.7).

exception flowsemantics.errors.EvaluationError[source]

Bases: FlowSemanticsError

Raised for an evaluation-time failure not otherwise classified.

exception flowsemantics.errors.FinalizationBudgetExceeded[source]

Bases: FlowSemanticsError

Recorded when cleanup exceeds its WithFinallyTimeout budget (SPEC 16.7).

exception flowsemantics.errors.FlowSemanticsError[source]

Bases: Exception

Base class for every exception raised by the FlowSemantics library.

exception flowsemantics.errors.PortabilityError[source]

Bases: FlowSemanticsError

Raised by export_portable() on a NATIVE contract (SPEC 4.4).

exception flowsemantics.errors.StructureError[source]

Bases: FlowSemanticsError

Raised by compile() when the flow structure is invalid (SPEC 4.3).