MCPcopy
hub / github.com/purpleidea/mgmt / Error

Method Error

engine/resources/http.go:50–52  ·  view source on GitHub ↗

Error is required to implement the `error` type interface.

()

Source from the content-addressed store, hash-verified

48
49// Error is required to implement the `error` type interface.
50func (obj *httpError) Error() string {
51 return strconv.Itoa(obj.code) + " " + obj.msg
52}
53
54// newHTTPError generates a new httpError based on a single status code. It gets
55// the msg text from the http.StatusText method.

Callers 15

WatchMethod · 0.45
sendHTTPErrorFunction · 0.45
runLongpollStepsFunction · 0.45
snsPostHandlerMethod · 0.45
WatchMethod · 0.45
ServeHTTPMethod · 0.45
TestResources1Function · 0.45
TestResources2Function · 0.45

Calls

no outgoing calls

Tested by 15

runLongpollStepsFunction · 0.36
TestResources1Function · 0.36
TestResources2Function · 0.36
TestResToB64Function · 0.36
TestResToB64MetaFunction · 0.36
TestCurrentUserGroupByIdFunction · 0.36