Skip to content

Commit

Permalink
πŸ› add ProjectInvalidRightsError to folders exception handling (#6979)
Browse files Browse the repository at this point in the history
  • Loading branch information
matusdrobuliak66 authored Dec 18, 2024
1 parent 89c8472 commit 48d3fba
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
exception_handling_decorator,
to_exceptions_handlers_map,
)
from ..projects.exceptions import ProjectRunningConflictError, ProjectStoppingError
from ..projects.exceptions import (
ProjectInvalidRightsError,
ProjectRunningConflictError,
ProjectStoppingError,
)
from ..workspaces.errors import (
WorkspaceAccessForbiddenError,
WorkspaceFolderInconsistencyError,
Expand Down Expand Up @@ -53,6 +57,10 @@
status.HTTP_409_CONFLICT,
"Invalid folder value set: {reason}",
),
ProjectInvalidRightsError: HttpErrorInfo(
status.HTTP_403_FORBIDDEN,
"Access Denied: You do not have permission to move the project with UUID: {project_uuid}. Tip: Copy and paste the UUID into the search bar to locate the project.",
),
# Trashing
ProjectRunningConflictError: HttpErrorInfo(
status.HTTP_409_CONFLICT,
Expand Down

0 comments on commit 48d3fba

Please sign in to comment.