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

Function New

errors/errors.go:132–134  ·  view source on GitHub ↗

This returns a new baseError initialized with the given message and the current stack trace.

(msg string)

Source from the content-addressed store, hash-verified

130// This returns a new baseError initialized with the given message and
131// the current stack trace.
132func New(msg string) DropboxError {
133 return newBaseError(nil, msg)
134}
135
136// Same as New, but with fmt.Printf-style parameters.
137func Newf(format string, args ...interface{}) DropboxError {

Callers 15

TestNoErrMethod · 0.92
validateValueFunction · 0.92
sendRequestMethod · 0.92
receiveResponseMethod · 0.92
sendGetRequestMethod · 0.92
sendMutateRequestMethod · 0.92
mutateMethod · 0.92
ReplaceMethod · 0.92
sendDeleteRequestMethod · 0.92
sendCountRequestMethod · 0.92
NewStatusCodeErrorFunction · 0.92
writeStringsMethod · 0.92

Calls 1

newBaseErrorFunction · 0.85

Tested by 9

TestNoErrMethod · 0.74
ParseMethod · 0.74
TestStackTraceFunction · 0.56
TestStackAddrsFunction · 0.56
newDatabaseErrorFunction · 0.56
BenchmarkNewFunction · 0.56