userrole_errors

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2025 License: MIT Imports: 3 Imported by: 0

README

📦 Package userrole_errors

Source Path: shared/errors/user_role_errors

🏷️ Variables

Var:

ErrAssignRoleToUser is an error that is returned from the repository layer when an error occurs while trying to assign a role to the user.

var ErrAssignRoleToUser = errors.New("failed to assign role to user")

Var:

ErrFailedAssignRoleToUser is an error that is returned from the service layer when an error occurs while trying to assign a role to the user.

var ErrFailedAssignRoleToUser = response.NewErrorResponse("Failed to assign role to user", http.StatusInternalServerError)

Var:

ErrFailedRemoveRole is an error that is returned from the service layer when an error occurs while trying to remove a role from the user.

var ErrFailedRemoveRole = response.NewErrorResponse("Failed to remove role from user", http.StatusInternalServerError)

Var:

ErrRemoveRole is an error that is returned from the repository layer when an error occurs while trying to remove a role from the user.

var ErrRemoveRole = errors.New("failed to remove role from user")

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAssignRoleToUser = errors.New("failed to assign role to user")

ErrAssignRoleToUser is an error that is returned from the repository layer when an error occurs while trying to assign a role to the user.

View Source
var ErrFailedAssignRoleToUser = response.NewErrorResponse(
	"Failed to assign role to user",
	http.StatusInternalServerError,
)

ErrFailedAssignRoleToUser is an error that is returned from the service layer when an error occurs while trying to assign a role to the user.

View Source
var ErrFailedRemoveRole = response.NewErrorResponse(
	"Failed to remove role from user",
	http.StatusInternalServerError,
)

ErrFailedRemoveRole is an error that is returned from the service layer when an error occurs while trying to remove a role from the user.

View Source
var ErrRemoveRole = errors.New("failed to remove role from user")

ErrRemoveRole is an error that is returned from the repository layer when an error occurs while trying to remove a role from the user.

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