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

Function Wrap

errors/errors.go:142–144  ·  view source on GitHub ↗

Wraps another error in a new baseError.

(err error, msg string)

Source from the content-addressed store, hash-verified

140
141// Wraps another error in a new baseError.
142func Wrap(err error, msg string) DropboxError {
143 return newBaseError(err, msg)
144}
145
146// Same as Wrap, but with fmt.Printf-style parameters.
147func Wrapf(err error, format string, args ...interface{}) DropboxError {

Callers 15

sendRequestMethod · 0.92
receiveResponseMethod · 0.92
FlushMethod · 0.92
StatMethod · 0.92
VersionMethod · 0.92
VerbosityMethod · 0.92
LiteralFunction · 0.92
SerializeSqlMethod · 0.92
getLogFileReaderMethod · 0.92
ParseMethod · 0.92
ParseMethod · 0.92
ParseMethod · 0.92

Calls 1

newBaseErrorFunction · 0.85

Tested by 7

TestWrappedErrorFunction · 0.68
TestRootErrorsFunction · 0.68
TestFindWrappedErrorNilsFunction · 0.68
TestCustomErrorFunction · 0.68