daemon_base/
error.rs

1//! Error handling for the daemon library.
2//!
3//! This module defines the `DaemonError` enum, which represents errors that can occur
4//! during the daemon's lifecycle.
5
6use thiserror::Error;
7
8/// Represents errors that can occur in the daemon.
9#[derive(Debug, Error)]
10pub enum DaemonError {
11    #[error("Daemon is already running")]
12    AlreadyRunning,
13    #[error("Daemon is not running")]
14    NotRunning,
15    #[error("Custom error: {0}")]
16    CustomError(String),
17}