summaryrefslogtreecommitdiffstats
path: root/ipalib/errors2.py
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2009-02-12 02:10:12 -0700
committerRob Crittenden <rcritten@redhat.com>2009-02-17 16:03:10 -0500
commit4ab133c3cb8fa9a9aff2b7e5d1c53a0feb164f3f (patch)
tree5e1989c8c054b05876a86ed81ebb6dea6f66b033 /ipalib/errors2.py
parente0fe7323187df205c0994cc3fa4e0ee0b6445788 (diff)
downloadfreeipa.git-4ab133c3cb8fa9a9aff2b7e5d1c53a0feb164f3f.tar.gz
freeipa.git-4ab133c3cb8fa9a9aff2b7e5d1c53a0feb164f3f.tar.xz
freeipa.git-4ab133c3cb8fa9a9aff2b7e5d1c53a0feb164f3f.zip
Implemented more elegant way for entire plugin module to be conditionally skipped; updated cert.py and ra.py modules to use this
Diffstat (limited to 'ipalib/errors2.py')
-rw-r--r--ipalib/errors2.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/ipalib/errors2.py b/ipalib/errors2.py
index ebb1fdaf..6d26ee57 100644
--- a/ipalib/errors2.py
+++ b/ipalib/errors2.py
@@ -208,6 +208,21 @@ class PluginMissingOverrideError(PrivateError):
format = '%(base)s.%(name)s not registered, cannot override with %(plugin)r'
+class SkipPluginModule(PrivateError):
+ """
+ Raised to abort the loading of a plugin module.
+ """
+
+ format = '%(reason)s'
+
+
+class PluginsPackageError(PrivateError):
+ """
+ Raised when ``package.plugins`` is a module instead of a sub-package.
+ """
+
+ format = '%(name)s must be sub-package, not module: %(file)r'
+
##############################################################################
# Public errors: