actix_web_location/
error.rs1use thiserror::Error;
2
3#[cfg(feature = "actix-web-v3")]
4use actix_web_3::ResponseError;
5#[cfg(feature = "actix-web-v4")]
6use actix_web_4::ResponseError;
7
8#[derive(Error, Debug)]
10#[allow(missing_docs)]
11pub enum Error {
12 #[error("there was an error while setting up a provider")]
13 Setup(#[source] anyhow::Error),
14
15 #[error("there was an error accessing an underlying provider")]
16 Provider(#[source] anyhow::Error),
17
18 #[error("problem with the HTTP request")]
19 Http(#[source] anyhow::Error),
20
21 #[error("problem converting provider response to a location")]
22 Conversion(#[source] anyhow::Error),
23}
24
25impl ResponseError for Error {}