org.apache.directory.api.ldap.model.exception
Class AbstractLdapReferralException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapOperationException
org.apache.directory.api.ldap.model.exception.AbstractLdapReferralException
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- LdapPartialResultException, LdapReferralException
public class AbstractLdapReferralException
- extends LdapOperationException
A LdapOperationException which associates a resultCode namely the
ResultCodeEnum.REFERRAL resultCode with the exception.
- Author:
- Apache Directory Project
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
AbstractLdapReferralException
public AbstractLdapReferralException(String explanation)
- Creates a new instance of AbstractLdapReferralException.
- Parameters:
explanation - The associated message
getResultCode
public ResultCodeEnum getResultCode()
- Always returns
ResultCodeEnum.REFERRAL
- Overrides:
getResultCode in class LdapOperationException
- Returns:
- the LDAP result code corresponding to this exception type.
- See Also:
LdapException#getResultCode()
getReferralContext
public Context getReferralContext()
throws NamingException
- Throws:
NamingException
getReferralContext
public Context getReferralContext(Hashtable<?,?> arg)
throws NamingException
- Throws:
NamingException
retryReferral
public void retryReferral()
getRemainingDn
public Dn getRemainingDn()
- Returns:
- the remainingDn
setRemainingDn
public void setRemainingDn(Dn remainingDn)
- Parameters:
remainingDn - the remainingName to set
getResolvedObject
public Object getResolvedObject()
- Returns:
- the resolvedObject
setResolvedObject
public void setResolvedObject(Object resolvedObject)
- Parameters:
resolvedObject - the resolvedObject to set
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.