Documentation
¶
Overview ¶
Package errors defines internal service errors
Index ¶
- func Is(err error, target interface{}) bool
- func IsConflict(err error) bool
- func IsNotFound(err error) bool
- func IsWrongInput(err error) bool
- func NewConflict(format string, args ...interface{}) *conflict
- func WrapConflict(err error, format string, args ...interface{}) *conflict
- func WrapNotFound(err error, format string, args ...interface{}) *notFound
- func WrapWrongInput(err error, format string, args ...interface{}) *wrongInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsConflict ¶
IsConflict returns if the given error or child errors are NotFound
func IsNotFound ¶
IsNotFound returns if the given error or child errors are NotFound
func IsWrongInput ¶
IsWrongInput returns if the given error or child errors are WrongInputType
func NewConflict ¶
func NewConflict(format string, args ...interface{}) *conflict
NewConflict returns an error that satisfies IsConflict()
func WrapConflict ¶
WrapConflict returns an error which wraps err that satisfies IsConflict()
func WrapNotFound ¶
WrapNotFound returns an error which wraps err that satisfies IsNotFound()
func WrapWrongInput ¶
WrapWrongInput returns an error which wraps err that satisfies IsWrongInput()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.