diff --git a/src/com/rjconsultores/ventaboletos/service/impl/SapServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/SapServiceImpl.java index 2015d66be..88f070336 100644 --- a/src/com/rjconsultores/ventaboletos/service/impl/SapServiceImpl.java +++ b/src/com/rjconsultores/ventaboletos/service/impl/SapServiceImpl.java @@ -88,13 +88,15 @@ public class SapServiceImpl implements SapService{ if(integrado == null) { atualizaFechamento(fechamentoCntcorrente.getFechamentocntcorrenteId(), INTEGRACAO_SAP_ERRO); - log.error("Erro no envio/retorno da requisicao para integração SAP do fechamentoID: "+fechamentoCntcorrente.getFechamentocntcorrenteId()); + log.error("Erro no envio/retorno da requisicao para integra��o SAP do fechamentoID: "+fechamentoCntcorrente.getFechamentocntcorrenteId()); + throw new RuntimeException("Erro no envio/retorno da requisicao para integração SAP do fechamentoID: "+fechamentoCntcorrente.getFechamentocntcorrenteId()); }else if(integrado.getString("Integration").equals("S")) { atualizaFechamento(fechamentoCntcorrente.getFechamentocntcorrenteId(), INTEGRACAO_SAP_OK); contador++; }else if(integrado.getString("Integration").equals("E")) { atualizaFechamento(fechamentoCntcorrente.getFechamentocntcorrenteId(), INTEGRACAO_SAP_ERRO); log.warn("Retorno enviado pelo SAP: \r\n"+integrado.getString("Message")); + throw new RuntimeException("Fechamento: "+fechamentoCntcorrente.getFechamentocntcorrenteId()+"\r\nRetorno enviado pelo SAP: \r\n"+integrado.getString("Message")); } } } @@ -115,7 +117,7 @@ public class SapServiceImpl implements SapService{ Constante constante = constanteDAO.buscarPorNomeConstante(constanteString); if( constante == null || constante.getValorconstante() == null || constante.getValorconstante().isEmpty() ) { - throw new RuntimeException("Constante "+constanteString+" não cadastrada"); + throw new RuntimeException("Constante "+constanteString+" n�o cadastrada"); } return constante.getValorconstante();