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

Enum Error

ch_09/handle-errors/src/lib.rs:13–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11
12#[derive(Debug)]
13pub enum Error {
14 ParseError(std::num::ParseIntError),
15 MissingParameters,
16 WrongPassword,
17 CannotDecryptToken,
18 Unauthorized,
19 ArgonLibraryError(ArgonError),
20 DatabaseQueryError(sqlx::Error),
21 ReqwestAPIError(ReqwestError),
22 MiddlewareReqwestAPIError(MiddlewareReqwestError),
23 ClientError(APILayerError),
24 ServerError(APILayerError),
25}
26
27#[derive(Debug, Clone)]
28pub struct APILayerError {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected