Skip to main content

observer_core/
error.rs

1// SPDX-FileCopyrightText: 2026 Alexander R. Croft
2// SPDX-License-Identifier: GPL-3.0-or-later
3
4use thiserror::Error;
5
6pub type ObserverResult<T> = Result<T, ObserverError>;
7
8#[derive(Debug, Error)]
9pub enum ObserverError {
10    #[error("cmake error: {0}")]
11    Cmake(String),
12    #[error("inventory parse error: {0}")]
13    InventoryParse(String),
14    #[error("product parse error: {0}")]
15    ProductParse(String),
16    #[error("suite parse error: {0}")]
17    SuiteParse(String),
18    #[error("configuration error: {0}")]
19    Config(String),
20    #[error("normalization error: {0}")]
21    Normalize(String),
22    #[error("runtime error: {0}")]
23    Runtime(String),
24}