(&self)
| 14 | |
| 15 | impl ResponseError for MyError { |
| 16 | fn error_response(&self) -> HttpResponse { |
| 17 | match *self { |
| 18 | MyError::NotFound => HttpResponse::NotFound().finish(), |
| 19 | MyError::PoolError(ref err) => { |
| 20 | HttpResponse::InternalServerError().body(err.to_string()) |
| 21 | } |
| 22 | _ => HttpResponse::InternalServerError().finish(), |
| 23 | } |
| 24 | } |
| 25 | } |
nothing calls this directly
no outgoing calls
no test coverage detected