Fix exception => throwable in catch while loading plugins
This commit is contained in:
parent
8be2f22580
commit
3fdb366559
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,3 +3,4 @@
|
||||
/nbproject
|
||||
/build.xml
|
||||
/manifest.mf
|
||||
/dist
|
@ -41,7 +41,7 @@ public final class JavaPluginLoader implements PluginLoader {
|
||||
Constructor<? extends JavaPlugin> constructor = plugin.getConstructor(PluginLoader.class, Server.class, PluginDescriptionFile.class, File.class, ClassLoader.class);
|
||||
|
||||
result = constructor.newInstance(this, server, description, file, loader);
|
||||
} catch (Exception ex) {
|
||||
} catch (Throwable ex) {
|
||||
throw new InvalidPluginException(ex);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user