Newf returns an error that formats as the given format and args.
(format string, args ...any)
| 21 | |
| 22 | // Newf returns an error that formats as the given format and args. |
| 23 | func Newf(format string, args ...any) error { |
| 24 | return &Error{ |
| 25 | stack: callers(), |
| 26 | text: format, |
| 27 | args: args, |
| 28 | code: gcode.CodeNil, |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | // NewSkip creates and returns an error which is formatted from given text. |
| 33 | // The parameter `skip` specifies the stack callers skipped amount. |
searching dependent graphs…