Documentation ¶
Overview ¶
Contains utilities to use to create and consume simple errors.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsCausedBy ¶
Gets whether error is caused by another error with errCode.
func IsCausedByError ¶
Types ¶
type ErrorCode ¶
type ErrorCode = string
A generic error code type.
func GetErrorCode ¶
Gets the error code of the passed error if it has one.
type ErrorCollection ¶ added in v0.3.12
type ErrorCollection []error
A helper object that collects errors.
func (*ErrorCollection) Append ¶ added in v0.3.12
func (e *ErrorCollection) Append(err error) bool
func (ErrorCollection) Error ¶ added in v0.3.12
func (e ErrorCollection) Error() string
func (ErrorCollection) ErrorOrDefault ¶ added in v0.3.12
func (e ErrorCollection) ErrorOrDefault() error
Click to show internal directories.
Click to hide internal directories.