amber_api/
error.rs

1//! # Error types for the Amber Electric API client
2//!
3//! This module contains all error types and handling for the Amber API client.
4
5/// Error types that can occur when using the Amber API client
6#[derive(Debug, thiserror::Error)]
7#[non_exhaustive]
8pub enum AmberError {
9    /// HTTP request error
10    #[error("HTTP request failed: {0}")]
11    Http(#[from] ureq::Error),
12}
13
14/// Result type for Amber API operations
15pub type Result<T> = core::result::Result<T, AmberError>;