Wrapf wraps an error and adds a pg error code. See the doc on WrapWithDepthf for details.
(err error, code, format string, args ...interface{})
| 15 | // Wrapf wraps an error and adds a pg error code. See |
| 16 | // the doc on WrapWithDepthf for details. |
| 17 | func Wrapf(err error, code, format string, args ...interface{}) error { |
| 18 | return WrapWithDepthf(1, err, code, format, args...) |
| 19 | } |
| 20 | |
| 21 | // WrapWithDepthf wraps an error. It also annotates the provided |
| 22 | // pg code as new candidate code, to be used if the underlying |
no test coverage detected
searching dependent graphs…