spdx_toolkit/
error.rs

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