Join identical catch branches
See gh-2052
This commit is contained in:
committed by
Stephane Nicoll
parent
93e7a0a59d
commit
a218bf40cd
@@ -56,15 +56,10 @@ public class MockUOWManager implements UOWManager {
|
||||
action.run();
|
||||
this.status = (this.rollbackOnly ? UOW_STATUS_ROLLEDBACK : UOW_STATUS_COMMITTED);
|
||||
}
|
||||
catch (Error err) {
|
||||
this.status = UOW_STATUS_ROLLEDBACK;
|
||||
throw err;
|
||||
}
|
||||
catch (RuntimeException ex) {
|
||||
catch (Error | RuntimeException ex) {
|
||||
this.status = UOW_STATUS_ROLLEDBACK;
|
||||
throw ex;
|
||||
}
|
||||
catch (Exception ex) {
|
||||
} catch (Exception ex) {
|
||||
this.status = UOW_STATUS_ROLLEDBACK;
|
||||
throw new UOWActionException(ex);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user