oauth1_client/
error.rs

1use thiserror::Error;
2
3/// Error types specific to this crate
4#[derive(Error, Debug)]
5pub enum OAuthError {
6    /// Some provided parameters were duplicated or duplicated internal ones
7    #[error("some provided parameters were duplicated or duplicated internal ones")]
8    DuplicateParameters,
9    /// The response passed to a function in the flow module was invalid in some way
10    #[error("the response passed to a function in the flow module was invalid in some way")]
11    InvalidResponse,
12    /// The response didn't contain `oauth_callback_confirmed` or it was set to false
13    #[error("the response didn't contain `oauth_callback_confirmed` or it was set to false")]
14    CallbackNotConfirmed,
15}