Errorf returns an error and formats according to a format specifier
(code string, format string, args ...interface{})
| 43 | |
| 44 | // Errorf returns an error and formats according to a format specifier |
| 45 | func Errorf(code string, format string, args ...interface{}) error { |
| 46 | return New(code, fmt.Sprintf(format, args...)) |
| 47 | } |
| 48 | |
| 49 | // InternalError is a convenience function to create a Internal error with a message |
| 50 | func InternalError(message string) error { |