rs_zero/core/error.rs
1use thiserror::Error;
2
3/// Result type used by rs-zero core helpers.
4pub type CoreResult<T> = Result<T, CoreError>;
5
6/// Errors produced by core configuration, logging, and service helpers.
7#[derive(Debug, Error)]
8pub enum CoreError {
9 #[error("configuration error: {0}")]
10 Config(#[from] config::ConfigError),
11
12 #[error("subscriber initialization failed")]
13 SubscriberInit,
14
15 #[error("service error: {0}")]
16 Service(String),
17}