[Jiemamy-notify:2262] commit [3307] エラーが発生した場合はエラー画面に遷移するように。

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2009年 4月 18日 (土) 15:14:48 JST


Revision: 3307
          http://svn.sourceforge.jp/view?root=jiemamy&view=rev&rev=3307
Author:   ewigkeit1204
Date:     2009-04-18 15:14:48 +0900 (Sat, 18 Apr 2009)

Log Message:
-----------
エラーが発生した場合はエラー画面に遷移するように。

Modified Paths:
--------------
    sandbox/VerifyDB/src/main/java/org/jiemamy/sandbox/verifydb/web/verify/VerifyPage.java


-------------- next part --------------
Modified: sandbox/VerifyDB/src/main/java/org/jiemamy/sandbox/verifydb/web/verify/VerifyPage.java
===================================================================
--- sandbox/VerifyDB/src/main/java/org/jiemamy/sandbox/verifydb/web/verify/VerifyPage.java	2009-04-18 05:49:33 UTC (rev 3306)
+++ sandbox/VerifyDB/src/main/java/org/jiemamy/sandbox/verifydb/web/verify/VerifyPage.java	2009-04-18 06:14:48 UTC (rev 3307)
@@ -20,7 +20,6 @@
 import org.jiemamy.sandbox.verifydb.dto.ResultDataDto;
 import org.jiemamy.sandbox.verifydb.dxo.SelectItemDxo;
 import org.seasar.framework.util.tiger.IterableAdapter;
-import org.seasar.teeda.core.exception.AppFacesException;
 import org.seasar.teeda.extension.annotation.validator.Required;
 
 /**
@@ -147,8 +146,9 @@
 				this.resultDataItemsItems.add(rowList);
 			}
 		} catch (SQLException e) {
-			e.printStackTrace();
-			throw new AppFacesException("E0000000");
+			throw new FacesException(e);
+			// e.printStackTrace();
+			// throw new AppFacesException("E0000000", null, e);
 		} finally {
 			DbUtils.closeQuietly(rs);
 			DbUtils.closeQuietly(stmt);
@@ -168,8 +168,9 @@
 
 			this.updateNum = stmt.executeUpdate(this.query);
 		} catch (SQLException e) {
-			e.printStackTrace();
-			throw new AppFacesException("E0000000");
+			throw new FacesException(e);
+			// e.printStackTrace();
+			// throw new AppFacesException("E0000000", null, e);
 		} finally {
 			DbUtils.closeQuietly(stmt);
 			DbUtils.closeQuietly(conn);



Jiemamy-notify メーリングリストの案内
Back to archive index