Skip to main content

Module error

Module error 

Source
Expand description

The typed error family of spec §24.

Every error carries identifiers and codes only. Display output is safe to log: it never includes secrets, free user text, quotes or payloads.

OrchestratorError is the top-level sum type the runtime returns. ErrorClassification answers the five operational questions of §24 for it: is it retryable, may an effect have happened, which user-safe message key applies, how severe is it, and does it require a reconciliation job.

Re-exports§

pub use crate::event::UnknownOutcome;
pub use crate::hash::HashError;

Modules§

internal_code
Stable codes used by OrchestratorError::Internal.

Structs§

DomainRejection
A domain refused an act or a command (spec §8.2).
InvariantViolation
A projection violated one of the Flow Map invariants (spec §8.4).
ProviderFailure
Normalized description of a provider failure.
RejectionCode
Application-defined rejection code (e.g. "trip.traveler_missing").
RevisionConflict
A command targeted a revision that is no longer current (I13).
SchemaValidationError
A JSON Schema validation failure described by paths only.

Enums§

AuthorizationError
The actor is not allowed to do what the turn asks.
ErasedCallError
A domain call through the erased boundary failed either because of the boundary itself or because the domain rejected it.
ErasureError
Errors raised by the type-erasure boundary of the workflow registry.
ErrorSeverity
Operational severity of an error.
ExecutionError
Errors raised while executing a command batch.
InteractionError
Interaction lifecycle errors (spec §15).
InteractionSpecError
A card as specified could not be answered, or claims an authority it may not have (spec §15.2, §15.7, I6).
InvalidInputError
The turn input is malformed.
InvariantViolationKind
The individual Flow Map invariants.
OrchestratorError
Top-level error of a turn (spec §24).
PolicyError
Policy evaluation refused a command (spec §14.3, I12).
ProviderFailureCode
Normalized provider failure categories (spec §20.8).
ReductionError
The whole-turn reducer could not produce a plan (spec §13).
SchemaCheckError
Validating a JSON value against a schema failed.
StoreError
Errors raised by persistence adapters.
TargetError
Target resolution failed for an act (spec §12).

Constants§

UNKNOWN_OPERATION
The rejection code a workflow uses when compile_act does not recognise an operation at all.

Traits§

ErrorClassification
Answers the classification questions of spec §24 for an error.