diff options
Diffstat (limited to 'ipalib/errors.py')
-rw-r--r-- | ipalib/errors.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ipalib/errors.py b/ipalib/errors.py index 6a4e2c5d6..31fc14ea4 100644 --- a/ipalib/errors.py +++ b/ipalib/errors.py @@ -1501,6 +1501,22 @@ class BadSearchFilter(ExecutionError): format = _('Bad search filter %(info)s') +class NotAllowedOnNonLeaf(ExecutionError): + """ + **4210** Raised when operation is not allowed on a non-leaf entry + + For example: + + >>> raise NotAllowedOnNonLeaf() + Traceback (most recent call last): + ... + NotAllowedOnNonLeaf: Not allowed on non-leaf entry + """ + + errno = 4210 + format = _('Not allowed on non-leaf entry') + + class CertificateError(ExecutionError): """ **4300** Base class for Certificate execution errors (*4300 - 4399*). |