Skip to content

Commit 6e75a12

Browse files
committed
Make sure transaction is aborted upon exception.
1 parent 1e3ee15 commit 6e75a12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exist-core/src/main/java/org/exist/xmldb/AbstractLocal.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ protected <R> R withDb(final LocalXmldbFunction<R> dbOperation) throws XMLDBExce
265265
final R result = dbOperation.apply(broker, transaction);
266266
transaction.commit();
267267
return result;
268-
} catch (final XMLDBException e) {
268+
} catch (final XMLDBException | EXistException e) {
269269
transaction.abort();
270270
throw e;
271271
}

0 commit comments

Comments
 (0)