diff options
Diffstat (limited to 'ipalib/exceptions.py')
-rw-r--r-- | ipalib/exceptions.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/ipalib/exceptions.py b/ipalib/exceptions.py index 4150d712..4584c1ee 100644 --- a/ipalib/exceptions.py +++ b/ipalib/exceptions.py @@ -45,16 +45,20 @@ class IPAError(Exception): return self.msg % self.kw -class SetAttributeError(IPAError): - msg = 'Cannot set %r: NameSpace does not allow attribute setting' +class SetError(IPAError): + msg = 'setting %r, but NameSpace does not allow attribute setting' class OverrideError(IPAError): - msg = 'Unexpected override of %r; use override=True if intended' + msg = 'unexpected override of %r (use override=True if intended)' + + +class DuplicateError(IPAError): + msg = 'class %r at %d was already registered' class RegistrationError(IPAError): - msg = '%r is not a subclass of %s' + msg = '%r must be a subclass of %s' class PrefixError(IPAError): |