summaryrefslogtreecommitdiffstats
path: root/ipalib/errors.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipalib/errors.py')
-rw-r--r--ipalib/errors.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/ipalib/errors.py b/ipalib/errors.py
index 82905b391..caecdc382 100644
--- a/ipalib/errors.py
+++ b/ipalib/errors.py
@@ -992,6 +992,22 @@ class RemoteRetrieveError(ExecutionError):
errno = 4016
format = _('%(reason)s')
+class SameGroupError(ExecutionError):
+ """
+ **4017** Raised when adding a group as a member of itself
+
+ For example:
+
+ >>> raise SameGroupError()
+ Traceback (most recent call last):
+ ...
+ SameGroupError: A group may not be added as a member of itself
+
+ """
+
+ errno = 4017
+ format = _('A group may not be added as a member of itself')
+
class BuiltinError(ExecutionError):
"""
**4100** Base class for builtin execution errors (*4100 - 4199*).