Adds PluginException to both updatePlugin and installPlugin for better error flow. The client can write code, loops etc without null-checks such as if (!installPlugin(foo,"1.0.0")) ... but instead get a problem description in the exception that could also be displayed in a GUI. Now you only get a true/false and must check logs to see why the install/update failed. What do you think?
Also adds support for installing/updating to latest version by setting version=null.
This is a followup from #18
Adds PluginException to both updatePlugin and installPlugin for better error flow. The client can write code, loops etc without null-checks such as
if (!installPlugin(foo,"1.0.0")) ...
but instead get a problem description in the exception that could also be displayed in a GUI. Now you only get a true/false and must check logs to see why the install/update failed. What do you think?Also adds support for installing/updating to latest version by setting version=null.