Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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"} // ErrNotImplemented represents that the function is not implemented. ErrNotImplemented = errorType{codeNotImplemented, "not implemented"} )
Functions ¶
func IsAlreadyExisted ¶
IsAlreadyExisted checks the error is object AlreadyExisted or not.
func IsInvalidParam ¶
IsInvalidParam checks the error is the parameters are invalid or not.
func IsNotfound ¶
IsNotfound checks the error is object Notfound or not.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.