Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDB = TodoError{DBErr, "internal error", 500}
ErrDB is a canned error for unexpected DB Errors
View Source
var ErrInternal = TodoError{InternalErr, "internal error", 500}
ErrInternal is a canned error for unexpected service Errors
View Source
var ErrInvalidRequest = TodoError{InputError, "invalid request", 400}
ErrInvalidRequest is a canned error for invalid user ID
View Source
var ErrInvalidUser = TodoError{InvalidUserErr, "invalid user", 404}
ErrInvalidUser is a canned error for invalid user ID
View Source
var ErrNotFound = TodoError{NotFoundErr, "not found", 404}
ErrNotFound is a canned error for not found (http 404)
ErrUnauthorized is a canned error for lack of authorization (http 401)
Functions ¶
func IsNotFound ¶
func IsNotNoRows ¶
func IsUnauthorized ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.