diff options
author | James Ahlborn <jtahlborn@yahoo.com> | 2021-01-20 22:22:21 +0000 |
---|---|---|
committer | James Ahlborn <jtahlborn@yahoo.com> | 2021-01-20 22:22:21 +0000 |
commit | 65d69efe9f464d306dfc5783bc891baee812ef48 (patch) | |
tree | 0070cdbf2b7629c49208706b92cdecdbe83e043f /src/main/java/com/healthmarketscience/jackcess/impl/SqlHelperImpl.java | |
parent | ef3c97e8300dd0961db0b6b306232df7f252d599 (diff) | |
download | jackcess-modules.tar.gz jackcess-modules.zip |
no longer need to use initCausemodules
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/branches/modules@1355 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'src/main/java/com/healthmarketscience/jackcess/impl/SqlHelperImpl.java')
-rw-r--r-- | src/main/java/com/healthmarketscience/jackcess/impl/SqlHelperImpl.java | 4 |
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); } } |