1 2 3 4 5 6 7 8 9 10 11 12 13
use thiserror::Error; /// General error definition for the project #[derive(Error, Debug)] pub enum CertifyError { // detailed errors #[error("Rcgen error: {0}")] RcgenError(#[from] rcgen::Error), #[error("PEM error: {0}")] PemError(#[from] pem::PemError), #[error("Invalid certificate")] InvalidCertificate, }