Skip to content

Commit

Permalink
fix: add custom errors
Browse files Browse the repository at this point in the history
Signed-off-by: Youngjin Jo <[email protected]>
  • Loading branch information
yjinjo committed Sep 4, 2024
1 parent 4aa72e0 commit 329764a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/spaceone/identity/error/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,8 @@ class ERROR_WORKSPACES_DO_NOT_EXIST(ERROR_UNKNOWN):


class ERROR_ROLE_DOES_NOT_EXIST_OF_USER(ERROR_NOT_FOUND):
_message = "Role does not exist of User. (role_id = {role_id}, user_id = {user_id})"
_message = "Role does not exist in User. (role_id = {role_id}, user_id = {user_id})"


class ERROR_NOT_ALLOWED_TO_DELETE_ROLE_BINDING(ERROR_INVALID_ARGUMENT):
_message = "Not allowed to delete role binding. (workspace_group_id = {workspace_group_id}, role_binding_id = {role_binding_id})"

0 comments on commit 329764a

Please sign in to comment.