Uploaded image for project: 'Directory Client API'
  1. Directory Client API
  2. DIRAPI-48

Improve error reporting when an UnresolvedAddressException is thrown while connecting

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0.0-M5
    • 1.0.0-M6
    • None

    Description

      Improve error reporting when an UnresolvedAddressException is thrown while connecting.

      Currently the current exception is thrown:
      org.apache.directory.ldap.client.api.exception.InvalidConnectionException: Cannot connect on the server: null

      Unfortunately the wrapped UnresolvedAddressException has no associated message, thus the 'null' value.
      This is not very helpful to the user.

      Something like this could help the user a lot more:
      org.apache.directory.ldap.client.api.exception.InvalidConnectionException: Cannot connect on the server: Hostname 'ldap.example.com' could not be resolved.

      Attachments

        Activity

          People

            pamarcelot Pierre-Arnaud Marcelot
            pamarcelot Pierre-Arnaud Marcelot
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: