blob: 15e430888916cf576acc3f4e895fc62df43b963b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
use std::{fmt::Debug, num::ParseIntError};
use reqwest::header::InvalidHeaderValue;
#[derive(Debug, thiserror::Error)]
pub enum Error {
#[error("request: {source}")]
Reqwest {
#[from]
source: reqwest::Error,
},
#[error("config: {source}")]
Config {
#[from]
source: config::ConfigError,
},
#[error("serde: {source}")]
Serde {
#[from]
source: serde_json::Error,
},
#[error("parse int: {source}")]
Parse {
#[from]
source: ParseIntError,
},
#[error("parse header: {source}")]
InvalidHeaderValue {
#[from]
source: InvalidHeaderValue
},
#[error("ws")]
WsResponse,
}
|