From d303370e895db8e83d9468ca102b62352df4e3a4 Mon Sep 17 00:00:00 2001 From: "lucas.taia" Date: Tue, 17 May 2022 18:36:41 +0000 Subject: [PATCH] bug#24510 melhorias para verificar os erros ao gerar corrida dev:lucas qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@112233 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../ventaboletos/service/impl/CorridaServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);