From 56fa454fdd229524999127a5b89cc7c9077b9bd6 Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Tue, 5 Aug 2008 06:33:09 +0000 Subject: 47: Added plugable.check_identifier() function; added corresponding unit tests --- ipalib/errors.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ipalib/errors.py') diff --git a/ipalib/errors.py b/ipalib/errors.py index 53a0870e..e9f78477 100644 --- a/ipalib/errors.py +++ b/ipalib/errors.py @@ -56,13 +56,16 @@ class SetError(IPAError): - class RegistrationError(IPAError): """ Base class for errors that occur during plugin registration. """ +class NameSpaceError(RegistrationError): + msg = 'name %r does not re.match %r' + + class SubclassError(RegistrationError): """ Raised when registering a plugin that is not a subclass of one of the -- cgit