diff options
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 2c1e5a557..752a1e20f 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' |