Version: v0.0.0-...-1b9e8c6 Latest Latest

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2018 License: Apache-2.0 Imports: 1 Imported by: 0




This section is empty.


View Source
var (
	// ErrNotfound represents the object is not found, not exist.
	ErrNotfound = errorType{codeNotfound, "not found"}

	// ErrAlreadyExisted represents the object has already existed.
	ErrAlreadyExisted = errorType{codeAlreadyExisted, "already existed"}

	// ErrInvalidParam represents the parameters are invalid.
	ErrInvalidParam = errorType{codeInvalidParam, "invalid param"}

	// ErrTooMany reprensents the objects are too many.
	ErrTooMany = errorType{codeTooMany, "too many"}

	// ErrInvalidType represents the object's type is invalid.
	ErrInvalidType = errorType{codeInvalidType, "invalid type"}

	// ErrTimeout represents the operation is time out.
	ErrTimeout = errorType{codeTimeout, "time out"}

	// ErrLockfailed represents that failed to lock.
	ErrLockfailed = errorType{codeLockfailed, "lock failed"}


func IsAlreadyExisted

func IsAlreadyExisted(err error) bool

IsAlreadyExisted checks the error is object AlreadyExisted or not.

func IsInvalidParam

func IsInvalidParam(err error) bool

IsInvalidParam checks the error is the parameters are invalid or not.

func IsNotfound

func IsNotfound(err error) bool

IsNotfound checks the error is object Notfound or not.

func IsTimeout

func IsTimeout(err error) bool

IsTimeout checks the error is time out or not.


This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL