summaryrefslogtreecommitdiff
path: root/src/errors/auth.rs
blob: b11021c53b8014c0ef970c388d81df4dcd915a07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//! Authentication related error types.

/// Authentication prompt handler error.
#[derive(Debug, thiserror::Error)]
pub enum AuthPromptHandlerError
{
    /// Web server failed to bind to a address.
    #[error("Web server failed to bind to address")]
    BindAddressFailed,

    /// Invalid address.
    #[error("Invalid address")]
    InvalidAddress,

    /// Web server failed.
    #[error("Web server failed")]
    WebServerFailed(#[from] hyper::Error),

    /// No authentication code was received.
    #[error("No authentication code was received")]
    NoAuthCodeReceived,
}