1use reqwest::Method;
2
3#[derive(thiserror::Error, Debug)]
4pub enum Error {
5 #[error("Generic error: {0}")]
6 Generic(String),
7
8 #[error("Static error: {0}")]
9 Static(&'static str),
10
11 #[error("Method not supported for client.do_push (only POST, PUSH, PATCH). Was: {given_method}")]
12 NotSupportedMethodForPush { given_method: Method },
13
14 #[error("Not Json value at json pointer: {json_pointer}")]
15 NoJsonValueFound { json_pointer: String },
16
17 #[error(transparent)]
18 IO(#[from] std::io::Error),
19
20 #[error(transparent)]
21 Reqwest(#[from] reqwest::Error),
22
23 #[error(transparent)]
24 SerdeJson(#[from] serde_json::Error),
25}