Documentation ¶
Overview ¶
Package errors implements functions for advanced error handling.
Errors in this package contain a message, a cause (an error that caused this error) and an attachment (any interface{}). Errors also contain information about the program location where they were created.
Errors can be printed using the fmt.Printf verbs %s, %q, %x, %X, %v. In particular the %+v format will print an error complete with its stack trace.
Inspired by https://github.com/pkg/errors
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Attachment ¶
func Attachment(err error) interface{}
Attachment will return additional information attached to this error (if any).
func HasAttachment ¶
HasAttachment determines if a particular attachment is in the causal chain of this error.
Types ¶
This section is empty.