reflex/lifecycle/
error.rs1use std::path::PathBuf;
2use thiserror::Error;
3
4#[derive(Error, Debug)]
5pub enum LifecycleError {
7 #[error("Cloud operation failed: {0}")]
9 CloudError(String),
10
11 #[error("I/O error: {0}")]
13 Io(#[from] std::io::Error),
14
15 #[error("configuration error: {0}")]
17 Config(String),
18
19 #[error("snapshot not found at {path}")]
21 SnapshotNotFound {
22 path: PathBuf,
24 },
25
26 #[error("GCS bucket not configured (set REFLEX_GCS_BUCKET)")]
28 GcsBucketNotConfigured,
29}
30
31pub type LifecycleResult<T> = Result<T, LifecycleError>;