New returns an error with the supplied message. New also records the stack trace at thepoint it was called.
(message string)
| 59 | // New returns an error with the supplied message. New also records the stack |
| 60 | // trace at thepoint it was called. |
| 61 | func New(message string) error { |
| 62 | return errors.New(message) |
| 63 | } |
| 64 | |
| 65 | // Errorf formats according to a format specifier and returns the string |
| 66 | // as a value that satisfies error. |
no outgoing calls