#992 - API Change - Change Transaction.close() to throw PersistenceException rather than IOException

This commit is contained in:
Rob Bygrave committed 2017-03-13 22:10:08 +13:00
1 parent 41a7f2c97e
commit 1d99a5c5a4
5 files changed
+95 -10

No files matched your search

@@ -1144,11 +1144,7 @@ public class JdbcTransaction implements SpiTransaction {
* Alias for end(), which enables this class to be used in try-with-resources.
*/
@Override
public void close() throws IOException {
try {
end();
} catch (PersistenceException ex) {
throw new IOException(ex);
}
public void close() {
end();
}
}