NewWithDepth is like New() except the depth to capture the stack trace is configurable. See the doc of `New()` for more details.
(depth int, msg string)
| 47 | // trace is configurable. |
| 48 | // See the doc of `New()` for more details. |
| 49 | func NewWithDepth(depth int, msg string) error { return errutil.NewWithDepth(depth+1, msg) } |
| 50 | |
| 51 | // Newf creates an error with a formatted error message. |
| 52 | // A stack trace is retained. |
nothing calls this directly
no test coverage detected
searching dependent graphs…