1
2
3
4
5
6
7
8
9
10
11
//! Various errors and their conversions for Hacker News API interactions.

use thiserror::Error;

/// Exported types for handling internal errors with the client.
#[derive(Debug, Error)]
pub enum HackerNewsClientError {
    /// Reports errors that occur when making HTTP requests to Hacker News.
    #[error("{0}")]
    RequestError(#[from] reqwest::Error),
}