You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pa...@apache.org on 2018/08/10 16:29:38 UTC

[camel] branch camel-2.22.x updated: camel-smpp: SmppConnectionFactory keep cause when constructing new Exceptions

This is an automated email from the ASF dual-hosted git repository.

pascalschumacher pushed a commit to branch camel-2.22.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-2.22.x by this push:
     new 90ba4bc  camel-smpp: SmppConnectionFactory keep cause when constructing new Exceptions
90ba4bc is described below

commit 90ba4bc4836d49842939f6d1ba4fde2788a77917
Author: Pascal Schumacher <pa...@gmx.net>
AuthorDate: Fri Aug 10 18:22:40 2018 +0200

    camel-smpp: SmppConnectionFactory keep cause when constructing new Exceptions
---
 .../java/org/apache/camel/component/smpp/SmppConnectionFactory.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppConnectionFactory.java b/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppConnectionFactory.java
index 76e65fa..113393a 100644
--- a/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppConnectionFactory.java
+++ b/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppConnectionFactory.java
@@ -111,7 +111,7 @@ public final class SmppConnectionFactory implements ConnectionFactory {
 
             return new SocketConnection(socket);
         } catch (Exception e) {
-            throw new IOException(e.getMessage());
+            throw new IOException(e.getMessage(), e);
         }
     }
 
@@ -179,7 +179,7 @@ public final class SmppConnectionFactory implements ConnectionFactory {
             throw re;
         } catch (Exception e) {
             closeSocket(socket);
-            throw new RuntimeException("SmppConnectionFactory: " + e.getMessage());
+            throw new RuntimeException("SmppConnectionFactory: " + e.getMessage(), e);
         }
     }