New returns an error that formats as the given text.
(text string)
| 8 | |
| 9 | // New returns an error that formats as the given text. |
| 10 | func New(text string) error { |
| 11 | return errors.New(text) |
| 12 | } |
| 13 | |
| 14 | // wrapperError satisfies the error interface. |
| 15 | type wrapperError struct { |
no outgoing calls