Skip to content

Exception handling when loading extensions #6

@jchappelle

Description

@jchappelle

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions