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§
- Domain
Rejection - A domain refused an act or a command (spec §8.2).
- Invariant
Violation - A projection violated one of the Flow Map invariants (spec §8.4).
- Provider
Failure - Normalized description of a provider failure.
- Rejection
Code - Application-defined rejection code (e.g.
"trip.traveler_missing"). - Revision
Conflict - A command targeted a revision that is no longer current (I13).
- Schema
Validation Error - A JSON Schema validation failure described by paths only.
Enums§
- Authorization
Error - The actor is not allowed to do what the turn asks.
- Erased
Call Error - A domain call through the erased boundary failed either because of the boundary itself or because the domain rejected it.
- Erasure
Error - Errors raised by the type-erasure boundary of the workflow registry.
- Error
Severity - Operational severity of an error.
- Execution
Error - Errors raised while executing a command batch.
- Interaction
Error - Interaction lifecycle errors (spec §15).
- Interaction
Spec Error - A card as specified could not be answered, or claims an authority it may not have (spec §15.2, §15.7, I6).
- Invalid
Input Error - The turn input is malformed.
- Invariant
Violation Kind - The individual Flow Map invariants.
- Orchestrator
Error - Top-level error of a turn (spec §24).
- Policy
Error - Policy evaluation refused a command (spec §14.3, I12).
- Provider
Failure Code - Normalized provider failure categories (spec §20.8).
- Reduction
Error - The whole-turn reducer could not produce a plan (spec §13).
- Schema
Check Error - Validating a JSON value against a schema failed.
- Store
Error - Errors raised by persistence adapters.
- Target
Error - Target resolution failed for an act (spec §12).
Constants§
- UNKNOWN_
OPERATION - The rejection code a workflow uses when
compile_actdoes not recognise an operation at all.
Traits§
- Error
Classification - Answers the classification questions of spec §24 for an error.