userserviceerrors

package
v1.0.29 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 (
	// ErrFailedCreateUser is returned when creating a user fails.
	ErrFailedCreateUser = errors.ErrInternal.WithMessage("Failed to create user")

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

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

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

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

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

	// ErrFailedDeleteAll is returned when permanently deleting all users fails.
	ErrFailedDeleteAll = errors.ErrInternal.WithMessage("Failed to delete all users permanently")
)
View Source
var (
	// ErrInternalServerError is a generic internal server error.
	ErrInternalServerError = errors.ErrInternal.WithMessage("Internal server error")

	// ErrFailedSendEmail is returned when sending an email fails.
	ErrFailedSendEmail = errors.ErrInternal.WithMessage("Failed to send email")

	// ErrFailedPasswordNoMatch is returned when passwords do not match.
	ErrFailedPasswordNoMatch = errors.ErrUnauthorized.WithMessage("Password does not match")

	// ErrUserPassword is returned when there is an invalid password.
	ErrUserPassword = errors.ErrUnauthorized.WithMessage("Invalid password")

	// ErrAccountLocked is returned when the account is temporarily locked.
	ErrAccountLocked = errors.ErrForbidden.WithMessage("Account temporarily locked due to many failed attempts")
)
View Source
var (
	// ErrUserIDInValid is returned when an invalid user ID is provided.
	ErrUserIDInValid = errors.ErrBadRequest.WithMessage("Invalid user ID")

	// ErrUserNotFoundRes is returned when a user is not found.
	ErrUserNotFoundRes = errors.ErrNotFound.WithMessage("User not found")

	// ErrUserEmailAlready is returned when a user email already exists.
	ErrUserEmailAlready = errors.ErrBadRequest.WithMessage("User email already exists")

	// ErrFailedFindAll is returned when fetching users fails.
	ErrFailedFindAll = errors.ErrInternal.WithMessage("Failed to fetch users")

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

	// ErrFailedFindTrashed is returned when fetching trashed users fails.
	ErrFailedFindTrashed = errors.ErrInternal.WithMessage("Failed to fetch 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