NewSkip creates and returns an error which is formatted from given text. The parameter `skip` specifies the stack callers skipped amount.
(skip int, text string)
| 32 | // NewSkip creates and returns an error which is formatted from given text. |
| 33 | // The parameter `skip` specifies the stack callers skipped amount. |
| 34 | func NewSkip(skip int, text string) error { |
| 35 | return &Error{ |
| 36 | stack: callers(skip), |
| 37 | text: text, |
| 38 | code: gcode.CodeNil, |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | // NewSkipf returns an error that formats as the given format and args. |
| 43 | // The parameter `skip` specifies the stack callers skipped amount. |
searching dependent graphs…