You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
804 B
Go

package user
import sharederrors "knowfoolery/backend/shared/domain/errors"
var (
// ErrUserNotFound indicates user was not found.
ErrUserNotFound = sharederrors.New(sharederrors.CodeUserNotFound, "user not found")
// ErrUserAlreadyExists indicates user already exists.
ErrUserAlreadyExists = sharederrors.New(sharederrors.CodeUserAlreadyExists, "user already exists")
// ErrValidationFailed indicates user data is invalid.
ErrValidationFailed = sharederrors.New(sharederrors.CodeValidationFailed, "validation failed")
// ErrForbidden indicates the caller cannot access the resource.
ErrForbidden = sharederrors.New(sharederrors.CodeForbidden, "forbidden")
// ErrUnauthorized indicates missing user context.
ErrUnauthorized = sharederrors.New(sharederrors.CodeUnauthorized, "unauthorized")
)