NewWithDepthf creates an error with a pg code and extracts the context information at the specified depth level.
(depth int, code string, format string, args ...interface{})
| 80 | // NewWithDepthf creates an error with a pg code and extracts the context |
| 81 | // information at the specified depth level. |
| 82 | func NewWithDepthf(depth int, code string, format string, args ...interface{}) error { |
| 83 | err := errors.NewWithDepthf(1+depth, format, args...) |
| 84 | err = WithCandidateCode(err, code) |
| 85 | return err |
| 86 | } |
| 87 | |
| 88 | // New creates an error with a code. |
| 89 | func New(code string, msg string) error { |
no test coverage detected
searching dependent graphs…