signstar-common 0.2.0

Common components for Signstar libraries and command-line interfaces
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Error handling.

/// An error that can occur when using the common Signstar functionalities.
#[derive(Debug, thiserror::Error)]
pub enum Error {
    /// An administrative credentials error occurred.
    #[error(transparent)]
    AdminCredentials(#[from] crate::admin_credentials::Error),

    /// A config error occurred.
    #[error(transparent)]
    Config(#[from] crate::config::Error),

    /// A logging error occurred.
    #[cfg(feature = "logging")]
    #[error(transparent)]
    Logging(#[from] crate::logging::Error),
}