252253254255256257258259260261
} retry++; } if (retry == MAX_RETRIES) { throw new TransactionFailedException(); } return updateAdministrator(user); }
888990919293949596
ofyTxn.put(puzzleDetails); ofyTxn.getTxn().commit(); } finally { if (ofyTxn.getTxn().isActive()) { ofyTxn.getTxn().rollback(); throw new TransactionFailedException("Cannot create puzzle, title = \"" + puzzleInfo.getTitle() + "\""); } } }