MCPcopy
hub / github.com/dropbox/godropbox / Newf

Function Newf

errors/errors.go:137–139  ·  view source on GitHub ↗

Same as New, but with fmt.Printf-style parameters.

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

Source from the content-addressed store, hash-verified

135
136// Same as New, but with fmt.Printf-style parameters.
137func Newf(format string, args ...interface{}) DropboxError {
138 return newBaseError(nil, fmt.Sprintf(format, args...))
139}
140
141// Wraps another error in a new baseError.
142func Wrap(err error, msg string) DropboxError {

Callers 15

ReplaceMethod · 0.92
AppendMethod · 0.92
PrependMethod · 0.92
StatMethod · 0.92
validateValueFunction · 0.92
receiveResponseMethod · 0.92
StatMethod · 0.92
NewStatusCodeErrorFunction · 0.92
unmappedErrorMethod · 0.92
connectionErrorMethod · 0.92
GetMultiMethod · 0.92

Calls 1

newBaseErrorFunction · 0.85

Tested by 3

newFakeLogReaderMethod · 0.74
TestGetMethod · 0.74