database_bootstrap/
error.rs1#[derive(Debug, thiserror::Error)]
5pub enum BootstrapError<Err: std::error::Error> {
6 #[error("bootstrap step '{step}' failed: {message}")]
8 StepFailed { step: &'static str, message: String },
9
10 #[error("bootstrap step '{step}' dependency '{dependency}' not satisfied")]
12 DependencyNotSatisfied {
13 step: &'static str,
14 dependency: &'static str,
15 },
16
17 #[error("bootstrap step '{step}' verification failed: expected {expected}, got {actual}")]
19 VerificationFailed {
20 step: &'static str,
21 expected: String,
22 actual: String,
23 },
24
25 #[error("circular dependency detected involving step '{step}'")]
27 CircularDependency { step: &'static str },
28
29 #[error("database error during bootstrap: {0}")]
31 Database(#[from] Err),
32
33 #[error("internal error: {0}")]
35 Internal(String),
36}