Skip to main content

sigstore_verify/
error.rs

1//! Error types for sigstore-verify
2
3use thiserror::Error;
4
5/// Errors that can occur during verification
6#[derive(Error, Debug)]
7pub enum Error {
8    /// Verification error
9    #[error("Verification error: {0}")]
10    Verification(String),
11
12    /// Types error
13    #[error("Types error: {0}")]
14    Types(#[from] sigstore_types::Error),
15
16    /// Crypto error
17    #[error("Crypto error: {0}")]
18    Crypto(#[from] sigstore_crypto::Error),
19
20    /// Bundle error
21    #[error("Bundle error: {0}")]
22    Bundle(#[from] sigstore_bundle::Error),
23}
24
25/// Result type for verification operations
26pub type Result<T> = std::result::Result<T, Error>;