git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/branches/modules@1355 f203690c-595d-4dc9-a70b-905162fa7fd2tags/jackcess-4.0.0
@@ -423,10 +423,8 @@ class CalculatedColumnUtil | |||
buffer.put(intValBytes); | |||
} catch(ArithmeticException e) { | |||
throw (IOException) | |||
new IOException(withErrorContext( | |||
"Numeric value '" + inValue + "' out of range")) | |||
.initCause(e); | |||
throw new IOException( | |||
withErrorContext("Numeric value '" + inValue + "' out of range"), e); | |||
} | |||
} | |||
@@ -857,10 +857,8 @@ public class ColumnImpl implements Column, Comparable<ColumnImpl>, DateTimeConte | |||
// too big) | |||
buffer.putLong(decVal.movePointRight(4).longValueExact()); | |||
} catch(ArithmeticException e) { | |||
throw (IOException) | |||
new IOException(withErrorContext( | |||
"Currency value '" + inValue + "' out of range")) | |||
.initCause(e); | |||
throw new IOException( | |||
withErrorContext("Currency value '" + inValue + "' out of range"), e); | |||
} | |||
} | |||
@@ -933,10 +931,8 @@ public class ColumnImpl implements Column, Comparable<ColumnImpl>, DateTimeConte | |||
} | |||
buffer.put(intValBytes); | |||
} catch(ArithmeticException e) { | |||
throw (IOException) | |||
new IOException(withErrorContext( | |||
"Numeric value '" + inValue + "' out of range")) | |||
.initCause(e); | |||
throw new IOException( | |||
withErrorContext("Numeric value '" + inValue + "' out of range"), e); | |||
} | |||
} | |||
@@ -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); | |||
} | |||
} | |||
@@ -493,7 +493,7 @@ public class ImportUtil | |||
return table.getName(); | |||
} catch(SQLException e) { | |||
throw (IOException)new IOException(e.getMessage()).initCause(e); | |||
throw new IOException(e.getMessage(), e); | |||
} | |||
} | |||