cloacina-workflow::error
Rust
Error Types
This module defines the minimal error types needed for workflow authoring.
These errors do not include database or runtime-specific variants, which
are defined in the main cloacina crate.
Error Types
ContextError: Errors related to context operationsTaskError: Errors that occur during task executionCheckpointError: Errors in task checkpointing
enum ContextError
Section titled “enum ContextError”pub
Errors that can occur during context operations.
This minimal version only includes errors that can occur without database or runtime dependencies.
Variants
Section titled “Variants”Serialization- JSON serialization/deserialization errorKeyNotFound- Key not found in contextTypeMismatch- Type mismatch when retrieving a valueKeyExists- Key already exists when insertingDatabase- Database operation failed (infrastructure error, not a key issue)ConnectionPool- Connection pool exhausted or unavailable
enum TaskError
Section titled “enum TaskError”pub
Errors that can occur during task execution.
Task errors encompass execution failures, context issues, and any other problems that prevent a task from completing successfully.
Variants
Section titled “Variants”ExecutionFailed- Task execution failed with a messageDependencyNotSatisfied- Task dependency not satisfiedTimeout- Task exceeded timeoutContextError- Context operation error within a taskValidationFailed- Task validation failedUnknown- Unknown errorReadinessCheckFailed- Task readiness check failedTriggerRuleFailed- Trigger rule evaluation failed
enum CheckpointError
Section titled “enum CheckpointError”pub
Errors that can occur during task checkpointing.
Checkpoint errors occur when tasks attempt to save intermediate state for recovery purposes.
Variants
Section titled “Variants”SaveFailed- Failed to save checkpointLoadFailed- Failed to load checkpointSerialization- Checkpoint serialization errorStorageError- Checkpoint storage errorValidationFailed- Checkpoint validation failed