aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorJames Ahlborn <jtahlborn@yahoo.com>2015-03-13 13:11:06 +0000
committerJames Ahlborn <jtahlborn@yahoo.com>2015-03-13 13:11:06 +0000
commitb60366623ebdd7ce72798cb7fc4e40fa8e0cacc8 (patch)
tree30bc7bc56f760b8642b8b1168ec43eb2911b3fd7 /src/main
parent957d85b4f12b71a8e86955fa5057afddbe181a1c (diff)
downloadjackcess-b60366623ebdd7ce72798cb7fc4e40fa8e0cacc8.tar.gz
jackcess-b60366623ebdd7ce72798cb7fc4e40fa8e0cacc8.zip
missed a few more error context usages
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@920 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/com/healthmarketscience/jackcess/impl/CalculatedColumnUtil.java3
-rw-r--r--src/main/java/com/healthmarketscience/jackcess/impl/ColumnImpl.java8
2 files changed, 7 insertions, 4 deletions
diff --git a/src/main/java/com/healthmarketscience/jackcess/impl/CalculatedColumnUtil.java b/src/main/java/com/healthmarketscience/jackcess/impl/CalculatedColumnUtil.java
index 3b528f5..8cc25da 100644
--- a/src/main/java/com/healthmarketscience/jackcess/impl/CalculatedColumnUtil.java
+++ b/src/main/java/com/healthmarketscience/jackcess/impl/CalculatedColumnUtil.java
@@ -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);
}
}
diff --git a/src/main/java/com/healthmarketscience/jackcess/impl/ColumnImpl.java b/src/main/java/com/healthmarketscience/jackcess/impl/ColumnImpl.java
index 676af4d..c049396 100644
--- a/src/main/java/com/healthmarketscience/jackcess/impl/ColumnImpl.java
+++ b/src/main/java/com/healthmarketscience/jackcess/impl/ColumnImpl.java
@@ -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);
}
}