New is a convenience function that returns a new system error by calling errors.new.
(text string)
| 53 | |
| 54 | // New is a convenience function that returns a new system error by calling errors.new. |
| 55 | func New(text string) *Error { |
| 56 | return &Error{ |
| 57 | Underlying: errors.New(text), |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | // Newf is a convenience function that returns a new system error by calling fmt.Errorf. |
| 62 | func Newf(format string, args ...any) *Error { |
no outgoing calls
no test coverage detected