diff options
author | Jason Gerard DeRose <jderose@redhat.com> | 2008-07-19 04:28:03 +0000 |
---|---|---|
committer | Jason Gerard DeRose <jderose@redhat.com> | 2008-07-19 04:28:03 +0000 |
commit | ef7594ffe1bad349dc539f69ee90708460999a71 (patch) | |
tree | 0b6773b10d9c8946cb5d4ecd02644c9f2fb4eaad /ipalib/exceptions.py | |
parent | 5470a0d29a9131a5b95e6092df898ee579600e07 (diff) | |
download | freeipa-ef7594ffe1bad349dc539f69ee90708460999a71.tar.gz freeipa-ef7594ffe1bad349dc539f69ee90708460999a71.tar.xz freeipa-ef7594ffe1bad349dc539f69ee90708460999a71.zip |
4: Got basics of API.register_command() working; added corresponding unit tests
Diffstat (limited to 'ipalib/exceptions.py')
-rw-r--r-- | ipalib/exceptions.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ipalib/exceptions.py b/ipalib/exceptions.py index 2c1e5a55..752a1e20 100644 --- a/ipalib/exceptions.py +++ b/ipalib/exceptions.py @@ -47,3 +47,11 @@ class IPAError(Exception): class SetAttributeError(IPAError): msg = 'Cannot set %r: NameSpace does not allow attribute setting' + + +class OverrideError(IPAError): + msg = 'Unexpected override of %r; use override=True if intended' + + +class RegistrationError(IPAError): + msg = '%r is not a subclass of %s' |