signstar_crypto/error.rs
1//! Error handling.
2
3/// An error that may occur when working with cryptographic types for Signstar.
4#[derive(Debug, thiserror::Error)]
5pub enum Error {
6 /// An error related to OpenPGP occurred.
7 #[error("OpenPGP error: {0}")]
8 OpenPgp(#[from] crate::openpgp::Error),
9
10 /// An error related to raw signing occurred.
11 #[error("Signer error: {0}")]
12 Signer(#[from] crate::signer::error::Error),
13}