| 12 | |
| 13 | #[derive(Debug)] |
| 14 | pub enum Error { |
| 15 | ParseError(std::num::ParseIntError), |
| 16 | MissingParameters, |
| 17 | WrongPassword, |
| 18 | CannotDecryptToken, |
| 19 | Unauthorized, |
| 20 | ArgonLibraryError(ArgonError), |
| 21 | DatabaseQueryError(sqlx::Error), |
| 22 | MigrationError(sqlx::migrate::MigrateError), |
| 23 | ReqwestAPIError(ReqwestError), |
| 24 | MiddlewareReqwestAPIError(MiddlewareReqwestError), |
| 25 | ClientError(APILayerError), |
| 26 | ServerError(APILayerError) |
| 27 | } |
| 28 | |
| 29 | #[derive(Debug, Clone)] |
| 30 | pub struct APILayerError { |
nothing calls this directly
no outgoing calls
no test coverage detected