New returns an error with the supplied message. New also records the stack trace at the point it was called.
(code string, message string)
| 37 | // New returns an error with the supplied message. |
| 38 | // New also records the stack trace at the point it was called. |
| 39 | func New(code string, message string) error { |
| 40 | err := errors.New(message) |
| 41 | return argoerr{code, message, err} |
| 42 | } |
| 43 | |
| 44 | // Errorf returns an error and formats according to a format specifier |
| 45 | func Errorf(code string, format string, args ...interface{}) error { |
no outgoing calls