MCPcopy
hub / github.com/benbjohnson/wtf / Error

Struct Error

error.go:29–35  ·  view source on GitHub ↗

Error represents an application-specific error. Application errors can be unwrapped by the caller to extract out the code & message. Any non-application error (such as a disk error) should be reported as an EINTERNAL error and the human user should only see "Internal error" as the message. These lo

Source from the content-addressed store, hash-verified

27// message. These low-level internal error details should only be logged and
28// reported to the operator of the application (not the end user).
29type Error struct {
30 // Machine-readable error code.
31 Code string
32
33 // Human-readable error message.
34 Message string
35}
36
37// Error implements the error interface. Not used by the application otherwise.
38func (e *Error) Error() string {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected