diff --git a/src/com/rjconsultores/ventaboletos/service/impl/CorridaServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/CorridaServiceImpl.java index f9006605d..e2e80e21b 100644 --- a/src/com/rjconsultores/ventaboletos/service/impl/CorridaServiceImpl.java +++ b/src/com/rjconsultores/ventaboletos/service/impl/CorridaServiceImpl.java @@ -769,7 +769,7 @@ public class CorridaServiceImpl implements CorridaService { } } - } catch (org.springframework.dao.DataIntegrityViolationException ex) { + } catch (Exception ex) { log.error("", ex); } @@ -1300,7 +1300,7 @@ public class CorridaServiceImpl implements CorridaService { log.info("commit bloco corridas"); transactionManager.commit(status); status = transactionManager.getTransaction(def); - } catch (Throwable ex) { + } catch (Exception ex) { log.error("", ex); log.error(" Erro ao gerar corrida = " + esquemaCorrida.getNumCorrida() + " esquemaCorrida = " + esquemaCorrida.getEsquemacorridaId()); transactionManager.rollback(status);