MCPcopy
hub / github.com/autobrr/autobrr / New

Function New

pkg/errors/errors.go:41–43  ·  view source on GitHub ↗

New acts as pkg/errors.New does, producing a stack traced error, but supports interpolating of message parameters. Use this when you want the stack trace to start at the place you create the error.

(msg string, args ...interface{})

Source from the content-addressed store, hash-verified

39// interpolating of message parameters. Use this when you want the stack trace to start at
40// the place you create the error.
41func New(msg string, args ...interface{}) error {
42 return PopStack(errors.New(fmt.Sprintf(msg, args...)))
43}
44
45// Wrap creates a new error from a cause, decorating the original error message with a
46// prefix.

Callers 15

getJSONMethod · 0.92
GetTorrentByIDMethod · 0.92
ggn.goFile · 0.92
GetTorrentByIDMethod · 0.92
GetIndexMethod · 0.92
ptp.goFile · 0.92
GetTorrentByIDMethod · 0.92
getJSONMethod · 0.92
GetTorrentByIDMethod · 0.92
getMethod · 0.92
getCapsMethod · 0.92
getAndSetCapsMethod · 0.92

Calls 1

PopStackFunction · 0.85

Tested by 12

FindMethod · 0.74
GetMethod · 0.74
GetIndexerOptionsMethod · 0.74
StatsMethod · 0.74
DeleteMethod · 0.74
RetryMethod · 0.74
ProcessManualMethod · 0.74
LoginMethod · 0.74
UpdateUserMethod · 0.74