Add few more Error cases

This commit is contained in:
Rsl1122 2017-07-29 11:31:32 +03:00
parent 00d91ea140
commit f7f0a3f141
2 changed files with 4 additions and 4 deletions

View File

@ -208,7 +208,7 @@ public class Analysis {
if (analysisTypes.contains(boolTot)) {
replaceMap.put(source.getPlaceholder(boolTot.getPlaceholderModifier()), AnalysisUtils.getBooleanTotal(boolTot, source, uuids));
}
} catch (NoClassDefFoundError | Exception e) {
} catch (Exception | NoClassDefFoundError | NoSuchFieldError e) {
Log.error("A PluginData-source caused an exception: " + source.getPlaceholder("").replace("%", ""));
Log.toLog(this.getClass().getName(), e);

View File

@ -105,7 +105,7 @@ public class AnalysisUtils {
return source.parseContainer("", "Wrong Analysistype specified: " + analysisType.name());
}
return source.parseContainer(analysisType.getModifier(), String.valueOf(total));
} catch (Exception | NoClassDefFoundError e) {
} catch (Exception | NoClassDefFoundError | NoSuchFieldError e) {
return logPluginDataCausedError(source, e);
}
}
@ -150,7 +150,7 @@ public class AnalysisUtils {
return source.parseContainer("Err ", "Wrong Analysistype specified: " + analysisType.name());
}
return source.parseContainer(analysisType.getModifier(), FormatUtils.cutDecimals(average));
} catch (Exception e) {
} catch (Exception | NoClassDefFoundError | NoSuchFieldError e) {
return logPluginDataCausedError(source, e);
}
}
@ -169,7 +169,7 @@ public class AnalysisUtils {
.collect(Collectors.toList());
long count = tempList.stream().filter(value -> value).count();
return source.parseContainer(analysisType.getModifier(), ((double) (count / tempList.size()) * 100) + "%");
} catch (Exception e) {
} catch (Exception | NoClassDefFoundError | NoSuchFieldError e) {
return logPluginDataCausedError(source, e);
}
}