Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 8E093200B35 for ; Tue, 5 Jul 2016 18:28:13 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 8CA00160A60; Tue, 5 Jul 2016 16:28:13 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D78F2160A2C for ; Tue, 5 Jul 2016 18:28:12 +0200 (CEST) Received: (qmail 69509 invoked by uid 500); 5 Jul 2016 16:28:12 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 69500 invoked by uid 99); 5 Jul 2016 16:28:12 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jul 2016 16:28:12 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id E534CE01C1; Tue, 5 Jul 2016 16:28:11 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: sebb@apache.org To: commits@commons.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: commons-crypto git commit: CRYPTO-106 CryptoRandomFactory only handles ClassCast and ClassNotFound Date: Tue, 5 Jul 2016 16:28:11 +0000 (UTC) archived-at: Tue, 05 Jul 2016 16:28:13 -0000 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 Authored: Tue Jul 5 17:28:08 2016 +0100 Committer: Sebb 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()); } }