rolerepositoryerrors

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: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrCreateRole is returned when creating a new Role fails.
	ErrCreateRole = errors.ErrInternal.WithMessage("Failed to create role")

	// ErrUpdateRole is returned when updating an existing Role fails.
	ErrUpdateRole = errors.ErrInternal.WithMessage("Failed to update role")

	// ErrTrashedRole is returned when moving a Role to trash (soft-delete) fails.
	ErrTrashedRole = errors.ErrInternal.WithMessage("Failed to move role to trash")

	// ErrRestoreRole is returned when restoring a trashed Role fails.
	ErrRestoreRole = errors.ErrInternal.WithMessage("Failed to restore role from trash")

	// ErrDeleteRolePermanent is returned when permanently deleting a Role fails.
	ErrDeleteRolePermanent = errors.ErrInternal.WithMessage("Failed to permanently delete role")

	// ErrRestoreAllRoles is returned when restoring all trashed Roles fails.
	ErrRestoreAllRoles = errors.ErrInternal.WithMessage("Failed to restore all roles")

	// ErrDeleteAllRoles is returned when permanently deleting all Roles fails.
	ErrDeleteAllRoles = errors.ErrInternal.WithMessage("Failed to permanently delete all roles")
)
View Source
var (
	// ErrRoleNotFound indicates that the requested Role was not found in the database.
	ErrRoleNotFound = errors.ErrNotFound.WithMessage("Role not found")

	// ErrFindAllRoles is returned when retrieving all Roles from the database fails.
	ErrFindAllRoles = errors.ErrInternal.WithMessage("Failed to find all roles")

	// ErrFindActiveRoles is returned when retrieving all active Roles fails.
	ErrFindActiveRoles = errors.ErrInternal.WithMessage("Failed to find active roles")

	// ErrFindTrashedRoles is returned when retrieving trashed (soft-deleted) Roles fails.
	ErrFindTrashedRoles = errors.ErrInternal.WithMessage("Failed to find trashed roles")

	// ErrRoleConflict indicates a conflict where a Role already exists.
	ErrRoleConflict = errors.ErrConflict.WithMessage("Role already exists")
)

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