MCPcopy
hub / github.com/gogf/gf / NewSkip

Function NewSkip

errors/gerror/gerror_api.go:34–40  ·  view source on GitHub ↗

NewSkip creates and returns an error which is formatted from given text. The parameter `skip` specifies the stack callers skipped amount.

(skip int, text string)

Source from the content-addressed store, hash-verified

32// NewSkip creates and returns an error which is formatted from given text.
33// The parameter `skip` specifies the stack callers skipped amount.
34func NewSkip(skip int, text string) error {
35 return &Error{
36 stack: callers(skip),
37 text: text,
38 code: gcode.CodeNil,
39 }
40}
41
42// NewSkipf returns an error that formats as the given format and args.
43// The parameter `skip` specifies the stack callers skipped amount.

Callers 3

Test_NewFunction · 0.92
Benchmark_NewSkipFunction · 0.92

Calls 1

callersFunction · 0.85

Tested by 2

Test_NewFunction · 0.74
Benchmark_NewSkipFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…