mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Introduce AlreadyGroupMember exception, raised when a member is attempted to be re-added to a group.
This commit is contained in:
committed by
Rob Crittenden
parent
9943b80841
commit
4e48e1fbf7
@@ -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*).
|
||||
|
||||
Reference in New Issue
Block a user