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