mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noel Rouvignac
18.52.2015 58e42cdaa28e32c1225deda4cfeab261d7156496
opendj-server-legacy/src/main/java/org/opends/server/tools/LDAPConnection.java
@@ -249,16 +249,10 @@
      socket = createSSLOrBasicSocket(startTLSSocket, sslConnectionFactory);
      ldapWriter = new LDAPWriter(socket);
      ldapReader = new LDAPReader(socket);
    } catch(UnknownHostException uhe)
    } catch(UnknownHostException | ConnectException e)
    {
      LocalizableMessage msg = INFO_RESULT_CLIENT_SIDE_CONNECT_ERROR.get();
      throw new LDAPConnectionException(msg, CLIENT_SIDE_CONNECT_ERROR, null,
                                        uhe);
    } catch(ConnectException ce)
    {
      LocalizableMessage msg = INFO_RESULT_CLIENT_SIDE_CONNECT_ERROR.get();
      throw new LDAPConnectionException(msg, CLIENT_SIDE_CONNECT_ERROR, null,
                                        ce);
      throw new LDAPConnectionException(msg, CLIENT_SIDE_CONNECT_ERROR, null, e);
    } catch (LDAPConnectionException e)
    {
      throw e;