diff options
Diffstat (limited to 'ipalib/errors2.py')
-rw-r--r-- | ipalib/errors2.py | 15 |
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: |