Newf returns New(code, fmt.Sprintf(format, args...)).
(code codes.Code, format string, args ...interface{})
| 39 | |
| 40 | // Newf returns New(code, fmt.Sprintf(format, args...)). |
| 41 | func Newf(code codes.Code, format string, args ...interface{}) *Error { |
| 42 | return New(code, fmt.Sprintf(format, args...)) |
| 43 | } |
| 44 | |
| 45 | // Wrap annotates an error with a codes.Code |
| 46 | func Wrap(err error, code codes.Code) *Error { |