Class LDAPReferralException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.unboundid.ldap.sdk.migrate.ldapjdk.LDAPException
com.unboundid.ldap.sdk.migrate.ldapjdk.LDAPReferralException
- All Implemented Interfaces:
Serializable
@NotExtensible
@NotMutable
@ThreadSafety(level=COMPLETELY_THREADSAFE)
public class LDAPReferralException
extends LDAPException
This class provides an exception that may be returned if a referral is
returned in response for an operation.
This class is primarily intended to be used in the process of updating applications which use the Netscape Directory SDK for Java to switch to or coexist with the UnboundID LDAP SDK for Java. For applications not written using the Netscape Directory SDK for Java, the
This class is primarily intended to be used in the process of updating applications which use the Netscape Directory SDK for Java to switch to or coexist with the UnboundID LDAP SDK for Java. For applications not written using the Netscape Directory SDK for Java, the
LDAPException class should be used instead.- See Also:
-
Field Summary
Fields inherited from class com.unboundid.ldap.sdk.migrate.ldapjdk.LDAPException
ADMIN_LIMIT_EXCEEDED, AFFECTS_MULTIPLE_DSAS, ALIAS_DEREFERENCING_PROBLEM, ALIAS_PROBLEM, ATTRIBUTE_OR_VALUE_EXISTS, AUTH_METHOD_NOT_SUPPORTED, BUSY, CLIENT_LOOP, COMPARE_FALSE, COMPARE_TRUE, CONFIDENTIALITY_REQUIRED, CONNECT_ERROR, CONSTRAINT_VIOLATION, CONTROL_NOT_FOUND, ENTRY_ALREADY_EXISTS, INAPPROPRIATE_AUTHENTICATION, INAPPROPRIATE_MATCHING, INDEX_RANGE_ERROR, INSUFFICIENT_ACCESS_RIGHTS, INVALID_ATTRIBUTE_SYNTAX, INVALID_CREDENTIALS, INVALID_DN_SYNTAX, IS_LEAF, LDAP_NOT_SUPPORTED, LDAP_PARTIAL_RESULTS, LDAP_TIMEOUT, LOOP_DETECTED, MORE_RESULTS_TO_RETURN, NAMING_VIOLATION, NO_RESULTS_RETURNED, NO_SUCH_ATTRIBUTE, NO_SUCH_OBJECT, NOT_ALLOWED_ON_NONLEAF, NOT_ALLOWED_ON_RDN, OBJECT_CLASS_MODS_PROHIBITED, OBJECT_CLASS_VIOLATION, OPERATION_ERROR, OTHER, PARAM_ERROR, PROTOCOL_ERROR, REFERRAL, REFERRAL_LIMIT_EXCEEDED, SASL_BIND_IN_PROGRESS, SERVER_DOWN, SIZE_LIMIT_EXCEEDED, SORT_CONTROL_MISSING, STRONG_AUTH_REQUIRED, SUCCESS, TIME_LIMIT_EXCEEDED, UNAVAILABLE, UNAVAILABLE_CRITICAL_EXTENSION, UNDEFINED_ATTRIBUTE_TYPE, UNWILLING_TO_PERFORM -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new LDAP referral exception with no information.LDAPReferralException(LDAPException ldapException) Creates a new LDAP referral exception from the providedLDAPExceptionobject.LDAPReferralException(SearchResultReference reference) Creates a new LDAP referral exception from the providedSearchResultReferenceobject.LDAPReferralException(String message, int resultCode, String serverErrorMessage) Creates a new LDAP referral exception with the provided information.LDAPReferralException(String message, int resultCode, String[] referrals) Creates a new LDAP referral exception with the provided information. -
Method Summary
Methods inherited from class com.unboundid.ldap.sdk.migrate.ldapjdk.LDAPException
errorCodeToString, errorCodeToString, errorCodeToString, errorCodeToString, getLDAPErrorMessage, getLDAPResultCode, getMatchedDN, toLDAPException, toStringMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
LDAPReferralException
public LDAPReferralException()Creates a new LDAP referral exception with no information. -
LDAPReferralException
public LDAPReferralException(@Nullable String message, int resultCode, @Nullable String serverErrorMessage) Creates a new LDAP referral exception with the provided information.- Parameters:
message- The message for this LDAP referral exception.resultCode- The result code for this LDAP referral exception.serverErrorMessage- The error message returned from the server.
-
LDAPReferralException
Creates a new LDAP referral exception with the provided information.- Parameters:
message- The message for this LDAP referral exception.resultCode- The result code for this LDAP referral exception.referrals- The set of referrals for this exception.
-
LDAPReferralException
Creates a new LDAP referral exception from the providedLDAPExceptionobject.- Parameters:
ldapException- TheLDAPExceptionobject to use for this LDAP interrupted exception.
-
LDAPReferralException
Creates a new LDAP referral exception from the providedSearchResultReferenceobject.- Parameters:
reference- TheSearchResultReferenceobject to use to create this exception.
-
-
Method Details
-
getURLs
Retrieves the set of referral URLs for this exception.- Returns:
- The set of referral URLs for this exception.
-