Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.0.0-M5
-
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.