]> source.dussan.org Git - jackcess.git/commitdiff
missed a few more error context usages
authorJames Ahlborn <jtahlborn@yahoo.com>
Fri, 13 Mar 2015 13:11:06 +0000 (13:11 +0000)
committerJames Ahlborn <jtahlborn@yahoo.com>
Fri, 13 Mar 2015 13:11:06 +0000 (13:11 +0000)
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@920 f203690c-595d-4dc9-a70b-905162fa7fd2

src/main/java/com/healthmarketscience/jackcess/impl/CalculatedColumnUtil.java
src/main/java/com/healthmarketscience/jackcess/impl/ColumnImpl.java

index 3b528f5bdf99183838f264ce3e28d83c460f34da..8cc25da03167a42c180bc8ca3f7955436b672d2d 100644 (file)
@@ -351,7 +351,8 @@ class CalculatedColumnUtil
 
       } catch(ArithmeticException e) {
         throw (IOException)
-          new IOException("Numeric value '" + inValue + "' out of range")
+          new IOException(withErrorContext(
+              "Numeric value '" + inValue + "' out of range"))
           .initCause(e);
       }
     }
index 676af4d488e66ef6a7f12227767137f812587467..c049396f9f54d940ef5a9db9ca6a59a1ce30485c 100644 (file)
@@ -658,7 +658,7 @@ public class ColumnImpl implements Column, Comparable<ColumnImpl> {
   /**
    * Writes "Currency" values.
    */
-  private static void writeCurrencyValue(ByteBuffer buffer, Object value)
+  private void writeCurrencyValue(ByteBuffer buffer, Object value)
     throws IOException
   {
     Object inValue = value;
@@ -675,7 +675,8 @@ public class ColumnImpl implements Column, Comparable<ColumnImpl> {
       buffer.putLong(decVal.movePointRight(4).longValueExact());
     } catch(ArithmeticException e) {
       throw (IOException)
-        new IOException("Currency value '" + inValue + "' out of range")
+        new IOException(withErrorContext(
+                "Currency value '" + inValue + "' out of range"))
         .initCause(e);
     }
   }
@@ -750,7 +751,8 @@ public class ColumnImpl implements Column, Comparable<ColumnImpl> {
       buffer.put(intValBytes);
     } catch(ArithmeticException e) {
       throw (IOException)
-        new IOException("Numeric value '" + inValue + "' out of range")
+        new IOException(withErrorContext(
+                "Numeric value '" + inValue + "' out of range"))
         .initCause(e);
     }
   }