throw new SonarException("The plugin " + plugin.getKey() + " is not supported with Java " + SystemUtils.JAVA_VERSION_TRIMMED, e);
} catch (Throwable e) {
- // SONAR-3688
- // Throwable is explicitely caught instead of Exception in order to log the plugins
- // that are compiled for Java > 5. In such case java.lang.UnsupportedClassVersionError
- // is raised.
throw new SonarException("Fail to build the classloader of " + plugin.getKey(), e);
}
}
throw new SonarException("The plugin " + plugin.getKey() + " is not supported with Java " + SystemUtils.JAVA_VERSION_TRIMMED, e);
} catch (Throwable e) {
- // SONAR-3688
- // Throwable is explicitely caught instead of Exception in order to log the plugins
- // that are compiled for Java > 5. In such case java.lang.UnsupportedClassVersionError
- // is raised.
throw new SonarException("Fail to extend the plugin " + plugin.getBasePlugin() + " for " + plugin.getKey(), e);
}
}
throw new SonarException("The plugin " + plugin.getKey() + " is not supported with Java " + SystemUtils.JAVA_VERSION_TRIMMED, e);
} catch (Throwable e) {
- // SONAR-3688
- // Throwable is explicitely caught instead of Exception in order to log the plugins
- // that are compiled for Java > 5. In such case java.lang.UnsupportedClassVersionError
- // is raised.
- throw new SonarException("Fail to load plugin " + metadata.getKey(), e);
+ throw new SonarException("Fail to load plugin " + plugin.getKey(), e);
}
}