Skip to content

Commit 6a87dd6

Browse files
improve error handling
1 parent 5786896 commit 6a87dd6

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

services/web/server/src/simcore_service_webserver/folders/_exceptions_handlers.py

+9-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@
88
exception_handling_decorator,
99
to_exceptions_handlers_map,
1010
)
11-
from ..projects.exceptions import ProjectRunningConflictError, ProjectStoppingError
11+
from ..projects.exceptions import (
12+
ProjectInvalidRightsError,
13+
ProjectRunningConflictError,
14+
ProjectStoppingError,
15+
)
1216
from ..workspaces.errors import (
1317
WorkspaceAccessForbiddenError,
1418
WorkspaceFolderInconsistencyError,
@@ -53,6 +57,10 @@
5357
status.HTTP_409_CONFLICT,
5458
"Invalid folder value set: {reason}",
5559
),
60+
ProjectInvalidRightsError: HttpErrorInfo(
61+
status.HTTP_403_FORBIDDEN,
62+
"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.",
63+
),
5664
# Trashing
5765
ProjectRunningConflictError: HttpErrorInfo(
5866
status.HTTP_409_CONFLICT,

0 commit comments

Comments
 (0)