From: Blas R. S. <br...@us...> - 2002-05-25 01:42:12
|
Update of /cvsroot/firebird/client-java/src/org/firebirdsql/jdbc In directory usw-pr-cvs1:/tmp/cvs-serv21638/src/org/firebirdsql/jdbc Modified Files: FBStringField.java Log Message: more detailed conversion exception messages Index: FBStringField.java =================================================================== RCS file: /cvsroot/firebird/client-java/src/org/firebirdsql/jdbc/FBStringField.java,v retrieving revision 1.4 retrieving revision 1.5 diff -U3 -r1.4 -r1.5 --- FBStringField.java 8 Apr 2002 19:10:52 -0000 1.4 +++ FBStringField.java 25 May 2002 01:42:09 -0000 1.5 @@ -87,7 +87,7 @@ return Byte.parseByte(getString().trim()); } catch (NumberFormatException nfex) { throw (SQLException) createException( - BYTE_CONVERSION_ERROR).fillInStackTrace(); + BYTE_CONVERSION_ERROR+" "+getString().trim()).fillInStackTrace(); } } short getShort() throws SQLException { @@ -97,7 +97,7 @@ return Short.parseShort(getString().trim()); } catch (NumberFormatException nfex) { throw (SQLException) createException( - SHORT_CONVERSION_ERROR).fillInStackTrace(); + SHORT_CONVERSION_ERROR+" "+getString().trim()).fillInStackTrace(); } } int getInt() throws SQLException { @@ -107,7 +107,7 @@ return Integer.parseInt(getString().trim()); } catch (NumberFormatException nfex) { throw (SQLException) createException( - INT_CONVERSION_ERROR).fillInStackTrace(); + INT_CONVERSION_ERROR+" "+getString().trim()).fillInStackTrace(); } } long getLong() throws SQLException { @@ -118,7 +118,7 @@ } catch (NumberFormatException nfex) { throw (SQLException) createException( - LONG_CONVERSION_ERROR).fillInStackTrace(); + LONG_CONVERSION_ERROR+" "+getString().trim()).fillInStackTrace(); } } BigDecimal getBigDecimal() throws java.sql.SQLException { @@ -135,7 +135,7 @@ } catch (NumberFormatException nfex) { throw (SQLException) createException( - FLOAT_CONVERSION_ERROR).fillInStackTrace(); + FLOAT_CONVERSION_ERROR+" "+getString().trim()).fillInStackTrace(); } } double getDouble() throws java.sql.SQLException { @@ -146,7 +146,7 @@ } catch (NumberFormatException nfex) { throw (SQLException) createException( - DOUBLE_CONVERSION_ERROR).fillInStackTrace(); + DOUBLE_CONVERSION_ERROR+" "+getString().trim()).fillInStackTrace(); } } |