summaryrefslogtreecommitdiffstats
path: root/ipalib/exceptions.py
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2008-07-19 07:43:48 +0000
committerJason Gerard DeRose <jderose@redhat.com>2008-07-19 07:43:48 +0000
commit91adc9c2d060b65d96a8515d08fc7192be79da83 (patch)
treeb6490f3c526e04c63c73c1a21fa0a79b2fd6ffcf /ipalib/exceptions.py
parente8257ad5311a4011625ed28bf6b308b1a9b43776 (diff)
downloadfreeipa.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.py12
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):