MCPcopy
hub / github.com/benbjohnson/wtf / Errorf

Function Errorf

error.go:67–72  ·  view source on GitHub ↗

Errorf is a helper function to return an Error with a given code and formatted message.

(code string, format string, args ...interface{})

Source from the content-addressed store, hash-verified

65
66// Errorf is a helper function to return an Error with a given code and formatted message.
67func Errorf(code string, format string, args ...interface{}) *Error {
68 return &Error{
69 Code: code,
70 Message: fmt.Sprintf(format, args...),
71 }
72}

Callers 15

handleDialIndexMethod · 0.92
handleDialViewMethod · 0.92
handleDialCreateMethod · 0.92
handleDialEditMethod · 0.92
handleDialUpdateMethod · 0.92
handleDialDeleteMethod · 0.92
UpdateDialMethod · 0.92
authenticateMethod · 0.92
parseResponseErrorFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected