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

Struct baseError

errors/errors.go:54–61  ·  view source on GitHub ↗

Standard struct for general types of errors. For an example of custom error type, look at databaseError/newDatabaseError in errors_test.go.

Source from the content-addressed store, hash-verified

52// For an example of custom error type, look at databaseError/newDatabaseError
53// in errors_test.go.
54type baseError struct {
55 msg string
56 inner error
57
58 stack []uintptr
59 framesOnce sync.Once
60 stackFrames []runtime.Frame
61}
62
63// This returns the error string without stack trace information.
64func GetMessage(err interface{}) string {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected