#[derive(thiserror::Error, Debug)]
pub enum ContainerError {
#[cfg(feature = "anyhow")]
#[error(transparent)]
Anyhow(#[from] anyhow::Error),
#[error(transparent)]
Box(#[from] crate::BoxError),
#[error("[instance] `{instance}` boot failed: {source}")]
Boot {
instance: String,
#[source]
source: Box<Self>,
},
#[cfg(feature = "eyre")]
#[error(transparent)]
Eyre(#[from] eyre::Report),
#[error("[instance] `{instance}` register failed: {source}")]
Register {
instance: String,
#[source]
source: Box<Self>,
},
#[error("[instance] `{instance}` not registered")]
Resolve { instance: String },
}