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

Enum Error

ch_08/handle-errors/src/lib.rs:13–21  ·  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 DatabaseQueryError,
17 ReqwestAPIError(ReqwestError),
18 MiddlewareReqwestAPIError(MiddlewareReqwestError),
19 ClientError(APILayerError),
20 ServerError(APILayerError)
21}
22
23#[derive(Debug, Clone)]
24pub struct APILayerError {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected