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