throw more specific PluginLoadException instead of generic RuntimeException

This commit is contained in:
Sebastian Sdorra
2020-01-09 08:20:47 +01:00
parent bac3068b73
commit 6b62f0aab6

View File

@@ -271,7 +271,7 @@ public final class ExtensionCollector
try { try {
return classLoader.loadClass(extension.getClazz()); return classLoader.loadClass(extension.getClazz());
} catch (ClassNotFoundException ex) { } catch (ClassNotFoundException ex) {
throw new RuntimeException("failed to load clazz", ex); throw new PluginLoadException("failed to load clazz", ex);
} }
} }