winbrew_database/
error.rs1use thiserror::Error;
2
3#[derive(Debug, Error, Clone, Copy, PartialEq, Eq)]
4#[error("Package catalog not found. Run `winbrew update` to download it.")]
5pub struct CatalogNotFoundError;
6
7#[derive(Debug, Error, Clone, Copy, PartialEq, Eq)]
8#[error(
9 "Package catalog schema version mismatch. Expected {expected}, found {actual}. Run `winbrew update` to refresh the catalog bundle."
10)]
11pub struct CatalogSchemaVersionMismatchError {
12 pub expected: u32,
13 pub actual: i64,
14}