userrepositoryerrors

package
v1.0.28 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2026 License: MIT Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrUserConflict is returned when a user already exists.
	ErrUserConflict = errors.ErrConflict.WithMessage("User already exists")

	// ErrCreateUser is returned when creating a user fails.
	ErrCreateUser = errors.ErrInternal.WithMessage("Failed to create user")

	// ErrUpdateUser is returned when updating a user fails.
	ErrUpdateUser = errors.ErrInternal.WithMessage("Failed to update user")

	// ErrUpdateUserVerificationCode is returned when updating a user verification code fails.
	ErrUpdateUserVerificationCode = errors.ErrInternal.WithMessage("Failed to update user verification code")

	// ErrUpdateUserPassword is returned when updating a user password fails.
	ErrUpdateUserPassword = errors.ErrInternal.WithMessage("Failed to update user password")

	// ErrTrashedUser is returned when moving a user to trash fails.
	ErrTrashedUser = errors.ErrInternal.WithMessage("Failed to move user to trash")

	// ErrRestoreUser is returned when restoring a user from trash fails.
	ErrRestoreUser = errors.ErrInternal.WithMessage("Failed to restore user from trash")

	// ErrDeleteUserPermanent is returned when permanently deleting a user fails.
	ErrDeleteUserPermanent = errors.ErrInternal.WithMessage("Failed to permanently delete user")

	// ErrRestoreAllUsers is returned when restoring all users fails.
	ErrRestoreAllUsers = errors.ErrInternal.WithMessage("Failed to restore all users")

	// ErrDeleteAllUsers is returned when permanently deleting all users fails.
	ErrDeleteAllUsers = errors.ErrInternal.WithMessage("Failed to permanently delete all users")

	// ErrUserInternal is returned when an internal user error occurs.
	ErrUserInternal = errors.ErrInternal.WithMessage("User internal error")
)
View Source
var (
	// ErrUserNotFound is returned when a user is not found.
	ErrUserNotFound = errors.ErrNotFound.WithMessage("User not found")

	// ErrFindAllUsers is returned when fetching all users fails.
	ErrFindAllUsers = errors.ErrInternal.WithMessage("Failed to find all users")

	// ErrFindActiveUsers is returned when fetching active users fails.
	ErrFindActiveUsers = errors.ErrInternal.WithMessage("Failed to find active users")

	// ErrFindTrashedUsers is returned when fetching trashed users fails.
	ErrFindTrashedUsers = errors.ErrInternal.WithMessage("Failed to find trashed users")
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL