Documentation ¶
Overview ¶
Package errors implements functions to manipulate errors.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalid = errors.New("validation failed") ErrForbidden = errors.New("forbidden") ErrNotFound = errors.New("not found") ErrInternal = errors.New("internal system error") ErrTemporaryDisabled = errors.New("temporary disabled") ErrTimeout = errors.New("timeout") )
Application errors
Functions ¶
This section is empty.
Types ¶
type AppError ¶
type AppError struct {
// contains filtered or unexported fields
}
func Wrap ¶
Wrap returns new app error wrapping target error. If passed value is nil will fallback to internal
func (*AppError) StackTrace ¶
StackTrace returns the string slice of the error stack traces
Click to show internal directories.
Click to hide internal directories.