MCPcopy Create free account
hub / github.com/koding/kite / Error

Method Error

errors.go:26–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24}
25
26func (e Error) Error() string {
27 s := e.Message
28
29 if e.Type != "genericError" && e.Type != "" {
30 s = e.Type + ": " + e.Message
31 }
32
33 if e.RequestID != "" {
34 return s + " (" + e.RequestID + ")"
35 }
36
37 return s
38}
39
40// createError creates a new kite.Error for the given r variable
41func createError(req *Request, r interface{}) *Error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected