Newf creates an error with a formatted error message. A stack trace is retained. Note: the format string is assumed to not contain PII and is included in Sentry reports. Use errors.Newf("%s", ) for errors strings that may contain PII information. See the doc of `New()` for more detai
(format string, args ...interface{})
| 57 | // |
| 58 | // See the doc of `New()` for more details. |
| 59 | func Newf(format string, args ...interface{}) error { |
| 60 | return NewWithDepthf(1, format, args...) |
| 61 | } |
| 62 | |
| 63 | // NewWithDepthf is like Newf() except the depth to capture the stack |
| 64 | // trace is configurable. |
searching dependent graphs…