1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
// SPDX-FileCopyrightText: 2021 HH Partners
//
// SPDX-License-Identifier: MIT
#[derive(Debug, thiserror::Error)]
pub enum Error {
#[error("error with json")]
SerdeJson {
#[from]
source: serde_json::Error,
},
#[error("error with http request")]
Request {
#[from]
source: reqwest::Error,
},
#[error("error with graph: {0}")]
Graph(String),
}