summaryrefslogtreecommitdiff
path: root/gitlab/exceptions.py
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2022-06-09 11:11:35 -0400
committerNejc Habjan <nejc.habjan@siemens.com>2022-06-25 17:50:43 +0200
commitf57139d8f1dafa6eb19d0d954b3634c19de6413c (patch)
tree4cca8c42dffae9028b2d91390aed3a60a2e27b36 /gitlab/exceptions.py
parent8f8611a1263b8c19fd19ce4a904a310b0173b6bf (diff)
downloadgitlab-f57139d8f1dafa6eb19d0d954b3634c19de6413c.tar.gz
feat(users): add approve and reject methods to User
As requested in #1604. Co-authored-by: John Villalovos <john@sodarock.com>
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 602a452..1f7999e 100644
--- a/gitlab/exceptions.py
+++ b/gitlab/exceptions.py
@@ -294,6 +294,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
#