-
Notifications
You must be signed in to change notification settings - Fork 17
Description
This is more of a question/observation than an issue.
Should Exceptions in plugins bomb the whole app? Or the page trying to render it? I ask this because in trying to get plugins to work I have hit issues, most of them my own fault in how I am installing the plugin or the plugin itself may be faulty.
I've implemented a facade so I catch the exception and log it instead of throwing. But if someone was using the @Inject annotation then it would cause that page to throw an exception during rendering.
It may be too low of a level to make PluginManager catch this and I'm not sure if PluginComponentInjector could catch it and log it but it's something to think about. It seems most people would want the PluginManager.getExtensions to return an empty list in this case.
Maybe a configurable ExceptionHandler could be added. By default it could throw. Just a thought.