qvet_api/error.rs
1use thiserror::Error;
2
3/// Errors that may lead to the OAuth2 code grant not being successfully completed.
4#[derive(Error, Debug)]
5pub enum Error {
6 /// There was an error with our local server listening for the response.
7 #[error("Internal error in listener")]
8 Listener(hyper::Error),
9
10 #[error("Invalid configuration: {message}")]
11 InvalidConfiguration { message: String },
12}
13
14pub type Result<T> = std::result::Result<T, Error>;