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.
Click to show internal directories.
Click to hide internal directories.