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

Function Wrapf

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

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

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

Source from the content-addressed store, hash-verified

13// Wrapf wraps an error and adds a pg error code. See
14// the doc on WrapWithDepthf for details.
15func Wrapf(err error, code pgcode.Code, format string, args ...interface{}) error {
16 return WrapWithDepthf(1, err, code, format, args...)
17}
18
19// WrapWithDepthf wraps an error. It also annotates the provided
20// pg code as new candidate code, to be used if the underlying

Callers 15

MakeParseErrorFunction · 0.92
ParseDPGVectorFunction · 0.92
ParseDJSONFunction · 0.92
ParseDTSQueryFunction · 0.92
ParseDTSVectorFunction · 0.92
ResolveAsTypeMethod · 0.92
decorateTypeCheckErrorFunction · 0.92
TypeCheckMethod · 0.92
resolveCastFunction · 0.92
TypeCheckMethod · 0.92
TypeCheckMethod · 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…