summaryrefslogtreecommitdiff
path: root/gitlab/exceptions.py
diff options
context:
space:
mode:
authorNejc Habjan <nejc.habjan@siemens.com>2022-06-25 18:39:15 +0200
committerGitHub <noreply@github.com>2022-06-25 18:39:15 +0200
commitf9b7c7b5c1c5782ffe1cec19420f3484681e1a67 (patch)
tree757e00fc26885abbdf1663943a08495bb97cfe7c /gitlab/exceptions.py
parentf555bfb363779cc6c8f8036f6d6cfa302e15d4fe (diff)
parentf57139d8f1dafa6eb19d0d954b3634c19de6413c (diff)
downloadgitlab-f9b7c7b5c1c5782ffe1cec19420f3484681e1a67.tar.gz
Merge pull request #2061 from bgamari/patch-1
feat(users): add approve and reject methods to User
Diffstat (limited to 'gitlab/exceptions.py')
-rw-r--r--gitlab/exceptions.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/gitlab/exceptions.py b/gitlab/exceptions.py
index 09a72b7..8465838 100644
--- a/gitlab/exceptions.py
+++ b/gitlab/exceptions.py
@@ -298,6 +298,14 @@ class GitlabUnfollowError(GitlabOperationError):
pass
+class GitlabUserApproveError(GitlabOperationError):
+ pass
+
+
+class GitlabUserRejectError(GitlabOperationError):
+ pass
+
+
# For an explanation of how these type-hints work see:
# https://mypy.readthedocs.io/en/stable/generics.html#declaring-decorators
#