summaryrefslogtreecommitdiffstats
path: root/ipalib/errors2.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipalib/errors2.py')
-rw-r--r--ipalib/errors2.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/ipalib/errors2.py b/ipalib/errors2.py
index c80edf02..260a51e8 100644
--- a/ipalib/errors2.py
+++ b/ipalib/errors2.py
@@ -726,6 +726,22 @@ class RequiresRoot(ExecutionError):
errno = 4006
format = _('This command requires root access')
+class AlreadyPosixGroup(ExecutionError):
+ """
+ **4007** Raised when a group is already a posix group
+
+ For example:
+
+ >>> raise AlreadyPosixGroup
+ Traceback (most recent call last):
+ ...
+ AlreadyPosixGroup: This is already a posix group
+
+ """
+
+ errno = 4007
+ format = _('This is already a posix group')
+
class BuiltinError(ExecutionError):
"""
**4100** Base class for builtin execution errors (*4100 - 4199*).