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

This commit is contained in:
Rob Bygrave
2017-03-13 22:10:08 +13:00
parent 41a7f2c97e
commit 1d99a5c5a4
5 changed files with 95 additions and 10 deletions
@@ -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();
}
}