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

Function newDatabaseError

errors/errors_test.go:255–257  ·  view source on GitHub ↗

"constructor" for creating error (needs to store return value of StackTrace() to get the )

(msg string, code int)

Source from the content-addressed store, hash-verified

253// "constructor" for creating error (needs to store return value of StackTrace() to get the
254// )
255func newDatabaseError(msg string, code int) databaseError {
256 return databaseError{DropboxError: New(msg), code: code}
257}
258
259// ---------------------------------------
260

Callers 1

TestCustomErrorFunction · 0.85

Calls 1

NewFunction · 0.70

Tested by

no test coverage detected