mod component_log;
mod event_history;
pub(crate) mod lifecycle_helpers;
mod logging;
mod tracing_layer;
pub use component_log::*;
pub use event_history::*;
pub use logging::*;
pub use tracing_layer::*;
#[derive(Debug, thiserror::Error)]
#[error("{component_type} not found: {component_id}")]
pub struct ComponentNotFoundError {
pub component_type: &'static str,
pub component_id: String,
}
impl ComponentNotFoundError {
pub fn new(component_type: &'static str, component_id: impl Into<String>) -> Self {
Self {
component_type,
component_id: component_id.into(),
}
}
}