only wrap checked exceptions as persitence exception. allow runtime exception to bubble up
@@ -108,6 +108,8 @@ public class EncryptedTransactionDAOImpl implements EncryptedTransactionDAO {
try {
consumer.call();
return transaction;
+ } catch (RuntimeException ex) {
+ throw ex;
} catch (Exception e) {
throw new PersistenceException(e);
}
