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);
}
}
// 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);
}
}
}
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);
}
}
// 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);
}
}
// 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);
}
}
return table.getName();
} catch(SQLException e) {
- throw (IOException)new IOException(e.getMessage()).initCause(e);
+ throw new IOException(e.getMessage(), e);
}
}