Skip to main content
Cloacina Documentation
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Error

cloacina-workflow::error Rust

Enums

cloacina-workflow::error::ContextError pub

Errors that can occur during context operations.

This minimal version only includes errors that can occur without database or runtime dependencies.

Variants

  • Serialization - JSON serialization/deserialization error
  • KeyNotFound - Key not found in context
  • TypeMismatch - Type mismatch when retrieving a value
  • KeyExists - Key already exists when inserting
  • Database - Database operation failed (infrastructure error, not a key issue)
  • ConnectionPool - Connection pool exhausted or unavailable

cloacina-workflow::error::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

  • ExecutionFailed - Task execution failed with a message
  • DependencyNotSatisfied - Task dependency not satisfied
  • Timeout - Task exceeded timeout
  • ContextError - Context operation error within a task
  • ValidationFailed - Task validation failed
  • Unknown - Unknown error
  • ReadinessCheckFailed - Task readiness check failed
  • TriggerRuleFailed - Trigger rule evaluation failed

cloacina-workflow::error::CheckpointError pub

Errors that can occur during task checkpointing.

Checkpoint errors occur when tasks attempt to save intermediate state for recovery purposes.

Variants

  • SaveFailed - Failed to save checkpoint
  • LoadFailed - Failed to load checkpoint
  • Serialization - Checkpoint serialization error
  • StorageError - Checkpoint storage error
  • ValidationFailed - Checkpoint validation failed