Documentation ¶ Index ¶ func Cause(err error) error func Wrap(err error, message string) error type ErrorType func GetType(err error) ErrorType func (et ErrorType) New(message string) error func (et ErrorType) Wrap(err error, message string) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Cause ¶ func Cause(err error) error func Wrap ¶ func Wrap(err error, message string) error Types ¶ type ErrorType ¶ type ErrorType uint const ( Unknown ErrorType = iota InvalidArgument NotFound ) func GetType ¶ func GetType(err error) ErrorType func (ErrorType) New ¶ func (et ErrorType) New(message string) error func (ErrorType) Wrap ¶ func (et ErrorType) Wrap(err error, message string) error Source Files ¶ View all Source files errors.go Click to show internal directories. Click to hide internal directories.