mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
17 lines
658 B
Go
17 lines
658 B
Go
package errors
|
|
|
|
func NewUserError(msg string) (err error) {
|
|
return NewError(ErrorPrefixUser, msg)
|
|
}
|
|
|
|
var (
|
|
ErrorUserInvalidType = NewUserError("invalid type")
|
|
ErrorUserInvalidToken = NewUserError("invalid token")
|
|
ErrorUserNotExists = NewUserError("not exists")
|
|
ErrorUserAlreadyExists = NewUserError("already exists")
|
|
ErrorUserMismatch = NewUserError("mismatch")
|
|
ErrorUserMissingRequiredFields = NewUserError("missing required fields")
|
|
ErrorUserUnauthorized = NewUserError("unauthorized")
|
|
ErrorUserInvalidPassword = NewUserError("invalid password (length must be no less than 5)")
|
|
)
|