astrid_telemetry/error.rs
1//! Telemetry error types.
2
3use thiserror::Error;
4
5/// Errors that can occur with telemetry operations.
6#[derive(Debug, Error)]
7pub enum TelemetryError {
8 /// Configuration error.
9 #[error("Configuration error: {0}")]
10 ConfigError(String),
11
12 /// Initialization error.
13 #[error("Initialization error: {0}")]
14 InitError(String),
15
16 /// IO error.
17 #[error("IO error: {0}")]
18 IoError(#[from] std::io::Error),
19}
20
21/// Result type for telemetry operations.
22pub type TelemetryResult<T> = Result<T, TelemetryError>;