New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Communicate errors with Exceptions where appropriate #292
Comments
I added From mailing list discussion:
In the end I opted for a checked exception. |
Thank you, it makes sense — the clients that explicitly load plugins are likely to need to recover when a plugin turns un-loadable. Regarding |
Now I think this feature is fully implemented. |
Currently some operations in PluginManager may not complete successfully, according to documentation:
PluginManager#loadPlugin
— returnsnull
if failed to load the pluginPluginManager#unloadPlugin
— returnsfalse
if failed to unload the pluginSuch return values
The list is not exhaustive, and currently includes only the operations I bumped into. There might be some other operations that might benefit from more direct and detailed error reporting.
See also
The text was updated successfully, but these errors were encountered: