diff options
author | Pavel Zuna <pzuna@redhat.com> | 2009-04-22 11:04:29 +0200 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2009-04-22 15:18:47 -0400 |
commit | 4e48e1fbf717cb06f4145e2e345ec1dc86e253d3 (patch) | |
tree | 1beb5c0586c24fb6bd199e89b14a446ffa51cc23 /ipalib | |
parent | 9943b808417984bbec511e52a4cb2bf05760785c (diff) | |
download | freeipa-4e48e1fbf717cb06f4145e2e345ec1dc86e253d3.tar.gz freeipa-4e48e1fbf717cb06f4145e2e345ec1dc86e253d3.tar.xz freeipa-4e48e1fbf717cb06f4145e2e345ec1dc86e253d3.zip |
Introduce AlreadyGroupMember exception, raised when a member is attempted to be re-added to a group.
Diffstat (limited to 'ipalib')
-rw-r--r-- | ipalib/errors2.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ipalib/errors2.py b/ipalib/errors2.py index 341421e56..f626f359d 100644 --- a/ipalib/errors2.py +++ b/ipalib/errors2.py @@ -933,6 +933,22 @@ class RecursiveGroup(ExecutionError): errno = 4013 format = _('A group may not be a member of itself') +class AlreadyGroupMember(ExecutionError): + """ + **4014** Raised when a member is attempted to be re-added to a group + + For example: + + >>> raise AlreadyGroupMember() + Traceback (most recent call last): + ... + AlreadyGroupMember: This entry is already a member of the group + + """ + + errno = 4014 + format = _('This entry is already a member of the group') + class BuiltinError(ExecutionError): """ **4100** Base class for builtin execution errors (*4100 - 4199*). |