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:27:55 UTC
[camel] 01/02: 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 master
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 08c5c413ac8152af423c337c634148444e144e5f
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);
}
}