diff options
author | Jason Gerard DeRose <jderose@redhat.com> | 2008-07-19 07:43:48 +0000 |
---|---|---|
committer | Jason Gerard DeRose <jderose@redhat.com> | 2008-07-19 07:43:48 +0000 |
commit | 91adc9c2d060b65d96a8515d08fc7192be79da83 (patch) | |
tree | b6490f3c526e04c63c73c1a21fa0a79b2fd6ffcf /ipalib/exceptions.py | |
parent | e8257ad5311a4011625ed28bf6b308b1a9b43776 (diff) | |
download | freeipa.git-91adc9c2d060b65d96a8515d08fc7192be79da83.tar.gz freeipa.git-91adc9c2d060b65d96a8515d08fc7192be79da83.tar.xz freeipa.git-91adc9c2d060b65d96a8515d08fc7192be79da83.zip |
6: Fleshed out API.register_command, made correpsonding unit tests much more rigorous
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): |