roleserviceerrors

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrFailedCreateRole is returned when there is a failure in creating a role.
	ErrFailedCreateRole = errors.ErrInternal.WithMessage("Failed to create role")

	// ErrFailedUpdateRole is returned when there is a failure in updating a role.
	ErrFailedUpdateRole = errors.ErrInternal.WithMessage("Failed to update role")

	// ErrFailedTrashedRole is returned when there is a failure in moving a role to trash.
	ErrFailedTrashedRole = errors.ErrInternal.WithMessage("Failed to move role to trash")

	// ErrFailedRestoreRole is returned when there is a failure in restoring a trashed role.
	ErrFailedRestoreRole = errors.ErrInternal.WithMessage("Failed to restore role")

	// ErrFailedDeletePermanent is returned when there is a failure in permanently deleting a role.
	ErrFailedDeletePermanent = errors.ErrInternal.WithMessage("Failed to delete role permanently")

	// ErrFailedRestoreAll is returned when there is a failure in restoring all trashed roles.
	ErrFailedRestoreAll = errors.ErrInternal.WithMessage("Failed to restore all roles")

	// ErrFailedDeleteAll is returned when there is a failure in permanently deleting all roles.
	ErrFailedDeleteAll = errors.ErrInternal.WithMessage("Failed to delete all roles permanently")
)
View Source
var (
	// ErrRoleNotFoundRes is returned when the requested role is not found.
	ErrRoleNotFoundRes = errors.ErrNotFound.WithMessage("Role not found")

	// ErrFailedFindAll is returned when there is a failure in fetching all roles.
	ErrFailedFindAll = errors.ErrInternal.WithMessage("Failed to fetch roles")

	// ErrFailedFindActive is returned when there is a failure in fetching active roles.
	ErrFailedFindActive = errors.ErrInternal.WithMessage("Failed to fetch active roles")

	// ErrFailedFindTrashed is returned when there is a failure in fetching trashed roles.
	ErrFailedFindTrashed = errors.ErrInternal.WithMessage("Failed to fetch trashed roles")
)

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