• R/O
  • HTTP
  • SSH
  • HTTPS

jaxcel: 提交


Commit MetaInfo

修訂515f4bde82e076ebfbc76ebd74dd8921e6351845 (tree)
時間2014-09-14 02:31:43
作者noboru saitoh <msnobosan@gmal...>
Commiternoboru saitoh

Log Message

インプット・アウトプットのエラーキャッチ修正

Change Summary

差異

--- a/Jaxcel/src/org/hanei/jaxcel/report/ReportMaker.java
+++ b/Jaxcel/src/org/hanei/jaxcel/report/ReportMaker.java
@@ -28,7 +28,6 @@ import java.util.Map;
2828
2929 import org.apache.poi.hssf.usermodel.HSSFSheet;
3030 import org.apache.poi.hssf.usermodel.HSSFWorkbook;
31-import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
3231 import org.apache.poi.openxml4j.opc.OPCPackage;
3332 import org.apache.poi.poifs.filesystem.NPOIFSFileSystem;
3433 import org.apache.poi.poifs.filesystem.OfficeXmlFileException;
@@ -480,7 +479,7 @@ public class ReportMaker {
480479 pkg = OPCPackage.open((InputStream) template);
481480 }
482481 book = WorkbookFactory.create(pkg);
483- } catch (InvalidFormatException | IOException e2) {
482+ } catch (Exception e2) {
484483 log.error("template file open error: {}. {}", e1.getMessage(), e2.getMessage());
485484 }
486485 }
@@ -509,7 +508,7 @@ public class ReportMaker {
509508
510509 try {
511510 book.write(output);
512- } catch (IOException e) {
511+ } catch (Exception e) {
513512 log.error("workbook output error: {}", e.getMessage(), e);
514513 throw new JaxcelOutputException("workbook output error");
515514 }
Show on old repository browser