blob: cd4741d5ed4f63b551769700a9a32b22ce88bccb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
//! Authentication related error types.
/// Authentication prompt handler error.
#[derive(Debug, thiserror::Error)]
pub enum AuthPromptHandlerError
{
/// HTTP server failed to bind to a address.
#[error("HTTP server failed to bind to address")]
BindAddressFailed,
}
/// Access token request error.
#[derive(Debug, thiserror::Error)]
pub enum AccessTokenRequestError
{
/// Sending access token request failed.
#[error("Sending access token request failed")]
SendFailed(#[from] reqwest::Error),
/// Parsing access token respone failed.
#[error("Parsing access token respone failed")]
ResponseParseFailed,
}
|