mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#992 - API Change - Change Transaction.close() to throw PersistenceException rather than IOException
This commit is contained in:
@@ -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