hive_client/client/api/
error.rs1use crate::RefreshError;
2use thiserror::Error;
3
4#[derive(Error, Debug)]
5#[error(transparent)]
6#[non_exhaustive]
7pub enum ApiError {
9 #[error("An error occurred with the request sent to the Hive API: {0}")]
10 RequestError(#[from] reqwest::Error),
12
13 #[error("An error occurred while decoding the response from the Hive API: {0}")]
14 InvalidResponse(#[from] serde_json::Error),
16
17 #[error("An error occurred while trying to refresh the authentication tokens")]
18 RefreshError(#[from] RefreshError),
20}