You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by pm...@apache.org on 2012/09/03 22:50:10 UTC

svn commit: r1380352 - /jmeter/trunk/src/core/org/apache/jmeter/util/SSLManager.java

Author: pmouawad
Date: Mon Sep  3 20:50:10 2012
New Revision: 1380352

URL: http://svn.apache.org/viewvc?rev=1380352&view=rev
Log:
Add exception cascading

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/util/SSLManager.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/util/SSLManager.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/util/SSLManager.java?rev=1380352&r1=1380351&r2=1380352&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/util/SSLManager.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/util/SSLManager.java Mon Sep  3 20:50:10 2012
@@ -113,7 +113,7 @@ public abstract class SSLManager {
                 log.info("KeyStore created OK");
             } catch (Exception e) {
                 this.keyStore = null;
-                throw new RuntimeException("Could not create keystore: "+e.getMessage());
+                throw new RuntimeException("Could not create keystore: "+e.getMessage(), e);
             }
             FileInputStream fileInputStream = null;
             try {
@@ -203,7 +203,7 @@ public abstract class SSLManager {
                 log.info("TrustStore created OK, Type: JKS");
             } catch (Exception e) {
                 this.trustStore = null;
-                throw new RuntimeException("Problem creating truststore: "+e.getMessage());
+                throw new RuntimeException("Problem creating truststore: "+e.getMessage(), e);
             }
 
             FileInputStream fileInputStream = null;
@@ -219,7 +219,7 @@ public abstract class SSLManager {
                     this.trustStore.load(null, null);
                 }
             } catch (Exception e) {
-                throw new RuntimeException("Can't load TrustStore: " + e.toString());
+                throw new RuntimeException("Can't load TrustStore: " + e.getMessage(), e);
             } finally {
                 JOrphanUtils.closeQuietly(fileInputStream);
             }