1#[derive(Debug, thiserror::Error)]
5pub enum Error {
6 #[error("IO error: {0}")]
8 Io(#[from] std::io::Error),
9 #[error("Database error: {0}")]
11 Database(String),
12 #[error("Panic occurred in shuttle_service::main`: {0}")]
14 BuildPanic(String),
15 #[error("Panic occurred in `Service::bind`: {0}")]
17 BindPanic(String),
18 #[error("Failed to interpolate string. Is your Secrets.toml correct?")]
20 StringInterpolation(#[from] strfmt::FmtError),
21 #[error(transparent)]
22 Custom(#[from] CustomError),
23}
24
25pub type CustomError = anyhow::Error;