Class CursorLdapReferralException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.directory.api.ldap.model.cursor.CursorException
org.apache.directory.api.ldap.model.cursor.CursorLdapReferralException
- All Implemented Interfaces:
Serializable
A specific form of CursorException used when a referral is met
- Author:
- Apache Directory Project
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CursorLdapReferralExceptionA static exception to be used by the monitor -
Constructor Summary
ConstructorsConstructorDescriptionCursorLdapReferralException(LdapReferralException ldapReferralException) Creates a new instance of CursorClosedException.CursorLdapReferralException(LdapReferralException ldapReferralException, String message) Creates a new instance of CursorClosedException.CursorLdapReferralException(LdapReferralException ldapReferralException, String message, Throwable cause) Creates a new instance of CursorClosedException. -
Method Summary
Modifier and TypeMethodDescriptionAlways returnsResultCodeEnum.REFERRALbooleanMove to the next referralMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
INSTANCE
A static exception to be used by the monitor
-
-
Constructor Details
-
CursorLdapReferralException
Creates a new instance of CursorClosedException.- Parameters:
ldapReferralException- The associated exception
-
CursorLdapReferralException
Creates a new instance of CursorClosedException.- Parameters:
ldapReferralException- The associated exceptionmessage- The associated message
-
CursorLdapReferralException
public CursorLdapReferralException(LdapReferralException ldapReferralException, String message, Throwable cause) Creates a new instance of CursorClosedException.- Parameters:
ldapReferralException- The associated exceptionmessage- The associated messagecause- The original cause
-
-
Method Details
-
getResultCode
Always returnsResultCodeEnum.REFERRAL- Returns:
- the underlying LdapReferral result code, if any
- See Also:
-
getReferralInfo
- Returns:
- The current Referral
-
skipReferral
public boolean skipReferral()Move to the next referral- Returns:
- true if there is some next referral
-
getRemainingDn
- Returns:
- the remainingDn
-
getResolvedObject
- Returns:
- the resolvedObject
-