dataset.addSeries(series);
} catch (FileNotFoundException e) {
- if (LOG.isDebugEnabled()) {
- LOG.debug("Sorry, the file is not found.");
- }
- return "ERROR";
+ LOG.error("Sorry, the file is not found.", e);
}
} // for
document.close();
} catch (FileNotFoundException e) {
- if (LOG.isDebugEnabled()) {
- LOG.debug("Sorry, the file is not found.");
- }
+ LOG.error("Sorry, the file is not found.", e);
} catch (DocumentException e) {
- if (LOG.isDebugEnabled()) {
- LOG.debug("Sorry, the DocumentException is thrown.");
- }
+ LOG.error("Sorry, the DocumentException is thrown.", e);
}
return resultPath;