Mercurial > libervia-backend
diff src/core/exceptions.py @ 1535:c9ef16de3f13
core: more robust plugins loading:
- avoid stopping loading remaining plugins when a plugin raise an error
- new error exceptions.MissingModule allows to detect a missing third party module, and to give instructions to get it
- error during instanciation are catched too
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 29 Sep 2015 17:54:23 +0200 |
parents | faa1129559b8 |
children | b57b4683dc33 |
line wrap: on
line diff
--- a/src/core/exceptions.py Tue Sep 29 17:54:22 2015 +0200 +++ b/src/core/exceptions.py Tue Sep 29 17:54:23 2015 +0200 @@ -54,6 +54,12 @@ pass +class MissingModule(Exception): + # Used to indicate when a plugin dependence is not found + # it's nice to indicate when to find the dependence in argument string + pass + + class NotFound(Exception): pass