aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/com/healthmarketscience/jackcess/impl/SqlHelperImpl.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/healthmarketscience/jackcess/impl/SqlHelperImpl.java')
-rw-r--r--src/main/java/com/healthmarketscience/jackcess/impl/SqlHelperImpl.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/healthmarketscience/jackcess/impl/SqlHelperImpl.java b/src/main/java/com/healthmarketscience/jackcess/impl/SqlHelperImpl.java
index 142fb1f..079613f 100644
--- a/src/main/java/com/healthmarketscience/jackcess/impl/SqlHelperImpl.java
+++ b/src/main/java/com/healthmarketscience/jackcess/impl/SqlHelperImpl.java
@@ -45,7 +45,7 @@ public class SqlHelperImpl extends SqlHelper {
// note, start pos is 1-based
return b.getBytes(1L, (int)b.length());
} catch(SQLException e) {
- throw (IOException)(new IOException(e.getMessage())).initCause(e);
+ throw new IOException(e.getMessage(), e);
}
}
@@ -61,7 +61,7 @@ public class SqlHelperImpl extends SqlHelper {
// note, start pos is 1-based
return c.getSubString(1L, (int)c.length());
} catch(SQLException e) {
- throw (IOException)(new IOException(e.getMessage())).initCause(e);
+ throw new IOException(e.getMessage(), e);
}
}