MCPcopy
hub / github.com/didip/tollbooth / Error

Method Error

errors/errors.go:13–15  ·  view source on GitHub ↗

Error returns error message.

()

Source from the content-addressed store, hash-verified

11
12// Error returns error message.
13func (httperror *HTTPError) Error() string {
14 return fmt.Sprintf("%v: %v", httperror.StatusCode, httperror.Message)
15}

Callers 7

TestErrorFunction · 0.95
TestLimitByKeysFunction · 0.80
HTTPMiddlewareFunction · 0.80
TestStringInSliceFunction · 0.80
TestLimitReachedFunction · 0.80
TestFloatingLimitReachedFunction · 0.80

Calls

no outgoing calls

Tested by 6

TestErrorFunction · 0.76
TestLimitByKeysFunction · 0.64
TestStringInSliceFunction · 0.64
TestLimitReachedFunction · 0.64
TestFloatingLimitReachedFunction · 0.64