fabryk_client/
error.rs

1//! Error types for fabryk-client
2
3use thiserror::Error;
4
5/// Result type alias for fabryk-client operations
6pub type Result<T> = std::result::Result<T, Error>;
7
8/// Errors that can occur in fabryk-client
9#[derive(Error, Debug)]
10#[non_exhaustive]
11pub enum Error {
12    /// Error from fabryk-core
13    #[error("Core error: {0}")]
14    Core(#[from] fabryk_core::Error),
15
16    /// HTTP client error
17    #[error("HTTP error: {0}")]
18    Http(#[from] reqwest::Error),
19
20    /// Placeholder error variant
21    #[error("Not yet implemented: {0}")]
22    NotImplemented(&'static str),
23}