summaryrefslogtreecommitdiffstats
path: root/ipalib/errors.py
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2009-08-13 09:27:13 -0400
committerRob Crittenden <rcritten@redhat.com>2009-08-20 09:20:56 -0400
commitd9c54cd83e8c676e34497fa135786a626d5d1fc7 (patch)
tree9f0b4defe1bbc50d96cfedabf5d2b591de8eac53 /ipalib/errors.py
parent8780751330871033b13fc8fbb7eb0588baf4417d (diff)
downloadfreeipa-d9c54cd83e8c676e34497fa135786a626d5d1fc7.tar.gz
freeipa-d9c54cd83e8c676e34497fa135786a626d5d1fc7.tar.xz
freeipa-d9c54cd83e8c676e34497fa135786a626d5d1fc7.zip
Clean up additional issues discovered with pylint and pychecker
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 caecdc382..2edefa746 100644
--- a/ipalib/errors.py
+++ b/ipalib/errors.py
@@ -1008,6 +1008,22 @@ class SameGroupError(ExecutionError):
errno = 4017
format = _('A group may not be added as a member of itself')
+class DefaultGroupError(ExecutionError):
+ """
+ **4018** Raised when removing the default user group
+
+ For example:
+
+ >>> raise DefaultGroupError()
+ Traceback (most recent call last):
+ ...
+ DefaultGroupError: The default users group cannot be removed
+
+ """
+
+ errno = 4018
+ format = _('The default users group cannot be removed')
+
class BuiltinError(ExecutionError):
"""
**4100** Base class for builtin execution errors (*4100 - 4199*).