Errorf is calls the stdlib errors.Errorf and includes a stack trace.
(format string, args ...any)
| 113 | |
| 114 | // Errorf is calls the stdlib errors.Errorf and includes a stack trace. |
| 115 | func Errorf(format string, args ...any) error { |
| 116 | return &errorWithStack{ |
| 117 | msg: fmt.Errorf(format, args...), |
| 118 | stack: callStack(), |
| 119 | } |
| 120 | } |
| 121 | |
| 122 | // StackTrace retrieves the stack trace of an error as a string. |
| 123 | func StackTrace(err error) string { |
searching dependent graphs…