commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject commons-crypto git commit: CRYPTO-106 CryptoRandomFactory only handles ClassCast and ClassNotFound
Date Tue, 05 Jul 2016 16:28:11 GMT
Repository: commons-crypto
Updated Branches:
  refs/heads/master 929840b3a -> 3cd056451


CRYPTO-106 CryptoRandomFactory only handles ClassCast and ClassNotFound

Project: http://git-wip-us.apache.org/repos/asf/commons-crypto/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-crypto/commit/3cd05645
Tree: http://git-wip-us.apache.org/repos/asf/commons-crypto/tree/3cd05645
Diff: http://git-wip-us.apache.org/repos/asf/commons-crypto/diff/3cd05645

Branch: refs/heads/master
Commit: 3cd0564517a0a460556d4421dfbab1b60aa28471
Parents: 929840b
Author: Sebb <sebb@apache.org>
Authored: Tue Jul 5 17:28:08 2016 +0100
Committer: Sebb <sebb@apache.org>
Committed: Tue Jul 5 17:28:08 2016 +0100

----------------------------------------------------------------------
 .../java/org/apache/commons/crypto/random/CryptoRandomFactory.java | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-crypto/blob/3cd05645/src/main/java/org/apache/commons/crypto/random/CryptoRandomFactory.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/crypto/random/CryptoRandomFactory.java b/src/main/java/org/apache/commons/crypto/random/CryptoRandomFactory.java
index 83e7d37..1929685 100644
--- a/src/main/java/org/apache/commons/crypto/random/CryptoRandomFactory.java
+++ b/src/main/java/org/apache/commons/crypto/random/CryptoRandomFactory.java
@@ -195,6 +195,8 @@ public class CryptoRandomFactory {
                 errorMessage.append("Class: [" + klassName + "] is not a CryptoRandom.");
             } catch (ClassNotFoundException e) {
                 errorMessage.append("CryptoRandom: [" + klassName + "] not found.");
+            } catch (Exception e) {
+                errorMessage.append("CryptoRandom: [" + klassName + "] failed with " + e.getMessage());
             }
         }
 


Mime
View raw message