1use thiserror::Error;
2
3#[derive(Error, Debug)]
4pub enum Error {
5 #[error("Unable to register 3rd party application: {0}")]
6 AppRegistrationError(&'static str),
7 #[error("Unable to save app cache: {0:?}")]
8 AppCacheIoError(std::io::Error),
9 #[cfg(feature = "app-file-cache")]
10 #[error("App cache is invalid: {0:?}")]
11 AppCacheInvalid(toml::de::Error),
12 #[error("Unable to obtain access token: {0}")]
13 TokenObtainError(&'static str),
14 #[error("Unable to verify access token: {0}")]
15 TokenVerifyError(&'static str),
16}