/** * Determines if the supplied ldap exception should result in an operation retry. * * @param e that was produced * @throws LdapException wrapping the ldap exception */ protected void processLDAPException(final LDAPException e) throws LdapException { ProviderUtils.throwOperationException( config.getOperationExceptionResultCodes(), e, e.getResultCode(), e.getMatchedDN(), null, null, true); }
/** * Determines if the supplied response should result in an operation retry. * * @param request that produced the exception * @param ldapResponse provider response * @throws LdapException wrapping the ldap exception */ protected void throwOperationException(final Request request, final LDAPResponse ldapResponse) throws LdapException { ProviderUtils.throwOperationException( config.getOperationExceptionResultCodes(), String.format("Ldap returned result code: %s", ldapResponse.getResultCode()), ldapResponse.getResultCode(), ldapResponse.getMatchedDN(), config.getControlProcessor().processResponseControls(ldapResponse.getControls()), ldapResponse.getReferrals(), false); }