From ef7594ffe1bad349dc539f69ee90708460999a71 Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Sat, 19 Jul 2008 04:28:03 +0000 Subject: 4: Got basics of API.register_command() working; added corresponding unit tests --- ipalib/exceptions.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ipalib/exceptions.py') 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' -- cgit