MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / Wrapf

Function Wrapf

pkg/sql/pgwire/pgerror/wrap.go:17–19  ·  view source on GitHub ↗

Wrapf wraps an error and adds a pg error code. See the doc on WrapWithDepthf for details.

(err error, code, format string, args ...interface{})

Source from the content-addressed store, hash-verified

15// Wrapf wraps an error and adds a pg error code. See
16// the doc on WrapWithDepthf for details.
17func 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

Callers 12

DecimalToHLCFunction · 0.92
makeParseErrorFunction · 0.92
ParseDJSONFunction · 0.92
ResolveAsTypeMethod · 0.92
decorateTypeCheckErrorFunction · 0.92
TypeCheckMethod · 0.92
checkFunctionUsageMethod · 0.92
TypeCheckMethod · 0.92
NewColumnTableDefFunction · 0.92
typeCheckOverloadedExprsFunction · 0.92
defaultTypeCheckFunction · 0.92
checkReturnFunction · 0.92

Calls 1

WrapWithDepthfFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…