summaryrefslogtreecommitdiffstats
path: root/ipalib/errors.py
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2009-08-11 17:08:09 -0400
committerRob Crittenden <rcritten@redhat.com>2009-08-12 13:18:15 -0400
commit8780751330871033b13fc8fbb7eb0588baf4417d (patch)
tree0b21cac0974b193c67c43e22fb7b21983766fbf8 /ipalib/errors.py
parentc781e8a57d3d05fa07729dbccff07bc1fab9d8e8 (diff)
downloadfreeipa-8780751330871033b13fc8fbb7eb0588baf4417d.tar.gz
freeipa-8780751330871033b13fc8fbb7eb0588baf4417d.tar.xz
freeipa-8780751330871033b13fc8fbb7eb0588baf4417d.zip
Clean up some problems discovered with pylint and pychecker
Much of this is formatting to make pylint happy but it also fixes some real bugs.
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 82905b39..caecdc38 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*).