(path string)
| 53 | } |
| 54 | |
| 55 | func newRouteNotDefinedError(path string) errctx.Error { |
| 56 | return RouteNotDefinedError{errctx.NewTextError( |
| 57 | fmt.Sprintf("Route for %s is not defined", path), |
| 58 | 1, |
| 59 | errctx.WithStatusCode(http.StatusNotFound), |
| 60 | errctx.WithPublicMessage("Not found"), |
| 61 | errctx.WithShouldReport(false), |
| 62 | )} |
| 63 | } |
| 64 | |
| 65 | func newRequestCancelledError(after time.Duration) errctx.Error { |
| 66 | return RequestCancelledError{errctx.NewTextError( |
no test coverage detected