MCPcopy Create free account
hub / github.com/Rust-Web-Development/code / Error

Enum Error

ch_11/handle-errors/src/lib.rs:14–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12
13#[derive(Debug)]
14pub 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)]
30pub struct APILayerError {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected