mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-17 22:56:28 +00:00
#992 - API Change - Change Transaction.close() to throw PersistenceException rather than IOException
This commit is contained in:
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();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user