ms-auth/pkg/utils/errors.go

27 lines
688 B
Go
Raw Permalink Normal View History

2024-10-09 17:07:38 +00:00
package utils
2024-07-14 21:26:34 +00:00
import (
"errors"
)
var (
ErrInternal = errors.New("internal")
ErrUnexpected = errors.New("unexpected")
ErrNoPermission = errors.New("no permission")
)
var (
ErrBadHandleOrPassword = errors.New("bad handle or password")
ErrBadRole = errors.New("bad role")
ErrTooShortPassword = errors.New("too short password")
ErrTooLongPassword = errors.New("too long password")
ErrBadEmail = errors.New("bad email")
ErrBadUsername = errors.New("bad username")
ErrTooShortUsername = errors.New("too short username")
ErrTooLongUsername = errors.New("too long username")
)
2024-08-14 10:36:43 +00:00
var (
ErrBadSession = errors.New("bad session")
)