aletheia 1.0.0

A client library for the Guardian's content API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Error variants.

use thiserror::Error;

#[derive(Error, Debug)]
pub enum Error {
    #[error(transparent)]
    ClientError(#[from] reqwest::Error),
    #[error(transparent)]
    JoinError(#[from] tokio::task::JoinError),
    #[error("Missing query parameter: {0}")]
    MissingQueryParameter(&'static str),
    #[error("API error: {0}")]
    ApiError(String),
}