Include exception in rethrow.

pull/154/head
Brett Wooldridge 11 years ago
parent c6a5329c99
commit 5f50abe288

@ -48,7 +48,7 @@ public final class DriverDataSource implements DataSource
} }
} }
catch (SQLException e) { catch (SQLException e) {
throw new RuntimeException("Unable to get driver for JDBC URL " + jdbcUrl); throw new RuntimeException("Unable to get driver for JDBC URL " + jdbcUrl, e);
} }
} }

@ -48,7 +48,7 @@ public final class DriverDataSource implements DataSource
} }
} }
catch (SQLException e) { catch (SQLException e) {
throw new RuntimeException("Unable to get driver for JDBC URL " + jdbcUrl); throw new RuntimeException("Unable to get driver for JDBC URL " + jdbcUrl, e);
} }
} }

Loading…
Cancel
Save