Skip to main content

registry_testkit/
error.rs

1//! Error types for the registry.
2
3use thiserror::Error;
4
5/// Result type alias for registry operations.
6pub type Result<T> = std::result::Result<T, RegistryError>;
7
8/// Errors that can occur during registry operations.
9#[derive(Error, Debug)]
10pub enum RegistryError {
11    #[error("IO error: {0}")]
12    Io(#[from] std::io::Error),
13
14    #[error("Upload not found: {0}")]
15    UploadNotFound(String),
16}