Fixed 10715: Fix error reporting in ComboTableData, don't throw away error text
authorStefan Hühner <stefan.huehner@openbravo.com>
Wed, 23 Sep 2009 15:50:13 +0200
changeset 5076 7c302cdb1c7f
parent 5075 c1b84d47d082
child 5077 402da4a11d1c
Fixed 10715: Fix error reporting in ComboTableData, don't throw away error text
src/org/openbravo/erpCommon/utility/ComboTableData.java
--- a/src/org/openbravo/erpCommon/utility/ComboTableData.java	Wed Sep 23 13:29:24 2009 +0200
+++ b/src/org/openbravo/erpCommon/utility/ComboTableData.java	Wed Sep 23 15:50:13 2009 +0200
@@ -1333,7 +1333,7 @@
       }
     } catch (SQLException e) {
       log4j.error("Error of SQL in query: " + strSql + "Exception:" + e);
-      throw new Exception(Integer.toString(e.getErrorCode()));
+      throw new Exception("@CODE=" + Integer.toString(e.getErrorCode()) + "@" + e.getMessage());
     } finally {
       getPool().releasePreparedStatement(st);
     }