just_auth/error.rs
1use thiserror::Error;
2
3#[derive(Debug, Error)]
4pub enum AuthError {
5 #[error(transparent)]
6 UrlEncodedSerializeErr(#[from] serde_urlencoded::ser::Error),
7
8 #[error(transparent)]
9 UrlEncodedDeserializeErr(#[from] serde_urlencoded::de::Error),
10
11 #[error(transparent)]
12 JsonParseErr(#[from] serde_json::Error),
13
14 #[error(transparent)]
15 ReqwestErr(#[from] reqwest::Error),
16}
17
18pub type Result<T> = std::result::Result<T, AuthError>;