Browse Source

no longer need to use initCause

git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/branches/modules@1355 f203690c-595d-4dc9-a70b-905162fa7fd2
tags/jackcess-4.0.0
James Ahlborn 3 years ago
parent
commit
65d69efe9f

+ 2
- 4
src/main/java/com/healthmarketscience/jackcess/impl/CalculatedColumnUtil.java View File

buffer.put(intValBytes); buffer.put(intValBytes);


} catch(ArithmeticException e) { } 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);
} }
} }



+ 4
- 8
src/main/java/com/healthmarketscience/jackcess/impl/ColumnImpl.java View File

// too big) // too big)
buffer.putLong(decVal.movePointRight(4).longValueExact()); buffer.putLong(decVal.movePointRight(4).longValueExact());
} catch(ArithmeticException e) { } 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);
} }
} }


} }
buffer.put(intValBytes); buffer.put(intValBytes);
} catch(ArithmeticException e) { } 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);
} }
} }



+ 2
- 2
src/main/java/com/healthmarketscience/jackcess/impl/SqlHelperImpl.java View File

// note, start pos is 1-based // note, start pos is 1-based
return b.getBytes(1L, (int)b.length()); return b.getBytes(1L, (int)b.length());
} catch(SQLException e) { } catch(SQLException e) {
throw (IOException)(new IOException(e.getMessage())).initCause(e);
throw new IOException(e.getMessage(), e);
} }
} }


// note, start pos is 1-based // note, start pos is 1-based
return c.getSubString(1L, (int)c.length()); return c.getSubString(1L, (int)c.length());
} catch(SQLException e) { } catch(SQLException e) {
throw (IOException)(new IOException(e.getMessage())).initCause(e);
throw new IOException(e.getMessage(), e);
} }
} }



+ 1
- 1
src/main/java/com/healthmarketscience/jackcess/util/ImportUtil.java View File

return table.getName(); return table.getName();


} catch(SQLException e) { } catch(SQLException e) {
throw (IOException)new IOException(e.getMessage()).initCause(e);
throw new IOException(e.getMessage(), e);
} }
} }



Loading…
Cancel
Save