public LDAPEntry next() throws LDAPException { if (empty) return null; this.wasRead = true; if (this.lastread != null) { if (lastread instanceof LDAPSearchResultReference) { LDAPReferralException ref = new LDAPReferralException("Referral",LDAPException.REFERRAL,"Referral encountered "); ref.setReferrals(((LDAPSearchResultReference) lastread).getReferrals()); throw ref; } return ((LDAPSearchResult) this.lastread).getEntry(); } else { return null; } }
rex.setReferrals( refs); throw rex; } else ExceptionMessages.REFERENCE_ERROR, lr.getException()); rex.setReferrals(ri.getReferralList()); rex.setFailedReferral( ri.getReferralUrl().toString()); throw rex;
"Automatic referral following not enabled", LDAPException.REFERRAL, getErrorMessage()); ((LDAPReferralException)ex).setReferrals( refs); break; default: // Everything else
ExceptionMessages.REFERRAL_SEND, LDAPException.CONNECT_ERROR, null, ex); rex.setReferrals( initialReferrals); ReferralInfo ref=rconn.getConnection().getActiveReferral(); rex.setFailedReferral( ref.getReferralUrl().toString()); rex.setReferrals( refs); if( rinfo != null) { rex.setFailedReferral( rinfo.getReferralUrl().toString());
LDAPReferralException rex = new LDAPReferralException( ExceptionMessages.REFERRAL_ERROR); rex.setReferrals( referrals); throw rex; ExceptionMessages.REFERRAL_ERROR, ldapex); rex.setReferrals(referrals);