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

Function NewWithDepthf

pkg/sql/pgwire/pgerror/errors.go:82–86  ·  view source on GitHub ↗

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{})

Source from the content-addressed store, hash-verified

80// NewWithDepthf creates an error with a pg code and extracts the context
81// information at the specified depth level.
82func 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.
89func New(code string, msg string) error {

Callers 3

newInvColRefFunction · 0.92
newInvTableNameErrorFunction · 0.92
newSourceNotFoundErrorFunction · 0.92

Calls 1

WithCandidateCodeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…