roleapierrors

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrApiBindCreateRole = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "bind failed: invalid create Role request", http.StatusBadRequest)
}

ErrApiBindCreateRole returns an API error response for failed Role creation request binding.

View Source
var ErrApiBindUpdateRole = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "bind failed: invalid update Role request", http.StatusBadRequest)
}

ErrApiBindUpdateRole returns an API error response for failed Role update request binding.

View Source
var ErrApiFailedCreateRole = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "failed to create Role", http.StatusInternalServerError)
}

ErrApiFailedCreateRole returns an API error response when Role creation fails.

View Source
var ErrApiFailedDeleteAll = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "failed to delete all Roles permanently", http.StatusInternalServerError)
}

ErrApiFailedDeleteAll returns an API error response when permanently deleting all Roles fails.

View Source
var ErrApiFailedDeletePermanent = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "failed to delete Role permanently", http.StatusInternalServerError)
}

ErrApiFailedDeletePermanent returns an API error response when permanently deleting a Role fails.

View Source
var ErrApiFailedFindActive = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "failed to fetch active Roles", http.StatusInternalServerError)
}

ErrApiFailedFindActive returns an API error response when fetching active Roles fails.

View Source
var ErrApiFailedFindAll = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "failed to fetch Roles", http.StatusInternalServerError)
}

ErrApiFailedFindAll returns an API error response when fetching all Roles fails.

View Source
var ErrApiFailedFindTrashed = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "failed to fetch trashed Roles", http.StatusInternalServerError)
}

ErrApiFailedFindTrashed returns an API error response when fetching trashed Roles fails.

View Source
var ErrApiFailedRestoreAll = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "failed to restore all Roles", http.StatusInternalServerError)
}

ErrApiFailedRestoreAll returns an API error response when restoring all trashed Roles fails.

View Source
var ErrApiFailedRestoreRole = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "failed to restore Role", http.StatusInternalServerError)
}

ErrApiFailedRestoreRole returns an API error response when restoring a trashed Role fails.

View Source
var ErrApiFailedTrashedRole = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "failed to move Role to trash", http.StatusInternalServerError)
}

ErrApiFailedTrashedRole returns an API error response when soft-deleting (trashing) a Role fails.

View Source
var ErrApiFailedUpdateRole = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "failed to update Role", http.StatusInternalServerError)
}

ErrApiFailedUpdateRole returns an API error response when Role update fails.

View Source
var ErrApiRoleInvalidId = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "invalid Role id", http.StatusNotFound)
}

ErrApiRoleInvalidId returns an API error response for an invalid Role ID.

View Source
var ErrApiRoleNotFound = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Role not found", http.StatusNotFound)
}

ErrApiRoleNotFound returns an API error response when the requested Role is not found.

View Source
var ErrApiValidateCreateRole = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "validation failed: invalid create Role request", http.StatusBadRequest)
}

ErrApiValidateCreateRole returns an API error response for invalid Role creation request validation.

View Source
var ErrApiValidateUpdateRole = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "validation failed: invalid update Role request", http.StatusBadRequest)
}

ErrApiValidateUpdateRole returns an API error response for invalid Role update request validation.

View Source
var ErrInvalidRoleId = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "invalid Role id", http.StatusBadRequest)
}

ErrInvalidRoleId returns an API error response for an invalid Role ID format.

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