/** * Checks if the specified LDAP exception is caused by the LDAP server * being unavailable, disconnected or timing out. * * @param e The LDAP exception. Must not be {@code null}. * * @return {@code true} if the LDAP exception is caused by the LDAP * server being unavailable, disconnected or timing out, else * {@code false}. */ protected static boolean indicatesConnectionException(final LDAPException e) { return indicatesConnectionException(e.getResultCode()); }
/** * Checks if the specified LDAP exception is caused by the LDAP server * being unavailable, disconnected or timing out. * * @param e The LDAP exception. Must not be {@code null}. * * @return {@code true} if the LDAP exception is caused by the LDAP * server being unavailable, disconnected or timing out, else * {@code false}. */ protected static boolean indicatesConnectionException(final LDAPException e) { return indicatesConnectionException(e.getResultCode()); }