MCPcopy Create free account
hub / github.com/actix/examples / MyError

Enum MyError

databases/postgres/src/errors.rs:8–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6
7#[derive(Debug, Display, Error, From)]
8pub enum MyError {
9 NotFound,
10 PGError(PGError),
11 PGMError(PGMError),
12 PoolError(PoolError),
13}
14
15impl ResponseError for MyError {
16 fn error_response(&self) -> HttpResponse {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected