Skip to content

Commit

Permalink
improve error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
matusdrobuliak66 committed Dec 18, 2024
1 parent 5786896 commit 6a87dd6
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 6a87dd6

Please sign in to comment.