diff --git a/src/com/rjconsultores/ventaboletos/rest/IntegracaoSapRest.java b/src/com/rjconsultores/ventaboletos/rest/IntegracaoSapRest.java index d787ea8b8..29b748fdf 100644 --- a/src/com/rjconsultores/ventaboletos/rest/IntegracaoSapRest.java +++ b/src/com/rjconsultores/ventaboletos/rest/IntegracaoSapRest.java @@ -44,11 +44,12 @@ public class IntegracaoSapRest { return getRetornoJSON(response); } catch (IOException e) { - log.error(e); + throw new RuntimeException("Erro na conversão do JSON na integração SAP", e); } catch (JSONException e) { - log.error(e); + throw new RuntimeException("Erro na conversão do JSON na integração SAP", e); } catch (Exception e) { log.error("Erro no envio/retorno da requisicao para integração SAP", e); + e.printStackTrace(); } return null; }