MCPcopy Index your code
hub / github.com/rilldata/rill / Error

Function Error

runtime/pkg/httputil/httputil.go:22–27  ·  view source on GitHub ↗

Error creates a new HTTP error with a status code from an existing error.

(statusCode int, err error)

Source from the content-addressed store, hash-verified

20
21// Error creates a new HTTP error with a status code from an existing error.
22func Error(statusCode int, err error) error {
23 return HTTPError{
24 StatusCode: statusCode,
25 Err: err,
26 }
27}
28
29// Errorf creates a new HTTP error with a status code and formatted message message.
30func Errorf(statusCode int, format string, args ...interface{}) error {

Callers 9

apiHandlerMethod · 0.92
combinedOpenAPISpecMethod · 0.92
healthCheckHandlerMethod · 0.92
assetsHandlerMethod · 0.92
checkGithubRateLimitMethod · 0.92
assetHandlerMethod · 0.92
RegisterEndpointsMethod · 0.92
justEnoughPrecisionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected