diff options
author | Rob Crittenden <rcritten@redhat.com> | 2009-09-10 16:10:30 -0400 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2009-09-14 09:46:39 -0400 |
commit | eca7cdc94a8377237533259755a19b75c313bd99 (patch) | |
tree | e055c6ac84f3ada3254837e084a0c77d73e06a6f /ipalib/errors.py | |
parent | 2c3bca7e7435cf8c24f8af12cd4572830084004c (diff) | |
download | freeipa-eca7cdc94a8377237533259755a19b75c313bd99.tar.gz freeipa-eca7cdc94a8377237533259755a19b75c313bd99.tar.xz freeipa-eca7cdc94a8377237533259755a19b75c313bd99.zip |
Raise more specific error when an Objectclass Violation occurs Fix the virtual plugin to work with the new backend
Diffstat (limited to 'ipalib/errors.py')
-rw-r--r-- | ipalib/errors.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ipalib/errors.py b/ipalib/errors.py index ad5f584f..cec80fb4 100644 --- a/ipalib/errors.py +++ b/ipalib/errors.py @@ -1119,6 +1119,21 @@ class LimitsExceeded(ExecutionError): errno = 4204 format = _('limits exceeded for this query') +class ObjectclassViolation(ExecutionError): + """ + **4205** Raised when an entry is missing a required attribute or objectclass + + For example: + + >>> raise ObjectclassViolation(info='attribute "krbPrincipalName" not allowed') + Traceback (most recent call last): + ... + ObjectclassViolation: attribute "krbPrincipalName" not allowed + """ + + errno = 4205 + format = _('%(info)s') + ############################################################################## # 5000 - 5999: Generic errors |