You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2019/01/11 22:35:32 UTC

[directory-ldap-api] branch master updated: As suggested by Stefan, throw a RTE instead of nothing

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

elecharny pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/directory-ldap-api.git


The following commit(s) were added to refs/heads/master by this push:
     new f439b5a  As suggested by Stefan, throw a RTE instead of nothing
f439b5a is described below

commit f439b5ae41d0ce22b8dedf5209afa81a76f0d86a
Author: Emmanuel Lecharny <el...@apache.org>
AuthorDate: Fri Jan 11 23:35:30 2019 +0100

    As suggested by Stefan, throw a RTE instead of nothing
---
 .../java/org/apache/directory/ldap/client/api/LdapConnectionConfig.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapConnectionConfig.java b/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapConnectionConfig.java
index 356f7c6..7d4675a 100644
--- a/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapConnectionConfig.java
+++ b/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapConnectionConfig.java
@@ -140,10 +140,12 @@ public class LdapConnectionConfig
         catch ( KeyStoreException kse )
         {
             LOG.error( I18n.err( I18n.ERR_04172_KEYSTORE_INIT_FAILURE ) );
+            throw new RuntimeException( kse.getMessage(), kse );
         }
         catch ( NoSuchAlgorithmException nsae )
         {
             LOG.error( I18n.err( I18n.ERR_04173_ALGORITHM_NOT_FOUND, defaultAlgorithm ) );
+            throw new RuntimeException( nsae.getMessage(), nsae );
         }
     }