netscape.ldap
public class LDAPReferralException extends LDAPException
getURLs
method.LDAPException
,
Serialized FormADMIN_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_DETECT, 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, TLS_NOT_SUPPORTED, UNAVAILABLE, UNAVAILABLE_CRITICAL_EXTENSION, UNDEFINED_ATTRIBUTE_TYPE, UNWILLING_TO_PERFORM
Constructor and Description |
---|
LDAPReferralException()
Constructs a default exception with no specific error information.
|
LDAPReferralException(java.lang.String message)
Constructs a default exception with a specified string as
additional information.
|
LDAPReferralException(java.lang.String message,
int resultCode,
java.lang.String serverErrorMessage)
Constructs a default exception with a specified string as
additional information.
|
LDAPReferralException(java.lang.String message,
int resultCode,
java.lang.String[] referrals)
Constructs an exception with a list of LDAP URLs to other LDAP servers.
|
Modifier and Type | Method and Description |
---|---|
LDAPUrl[] |
getURLs()
Gets the list of referrals (LDAP URLs to other servers) returned by the LDAP server.
|
java.lang.String |
toString()
Gets the string representation of the referral exception,
which includes the result code, the message sent back
from the LDAP server and the list of referrals.
|
errorCodeToString, errorCodeToString, errorCodeToString, errorCodeToString, getLDAPErrorMessage, getLDAPResultCode, getMatchedDN
public LDAPReferralException()
public LDAPReferralException(java.lang.String message)
message
- the additional error informationpublic LDAPReferralException(java.lang.String message, int resultCode, java.lang.String serverErrorMessage)
message
- the additional error informationresultCode
- result codeserverErrorMessage
- error messagepublic LDAPReferralException(java.lang.String message, int resultCode, java.lang.String[] referrals)
message
- the additional error informationresultCode
- result codereferrals
- array of LDAP URLs identifying other LDAP servers that
may contain the requested entriespublic LDAPUrl[] getURLs()
LDAPConnection
object)
to follow referrals automatically, any operation that results in a referral will use
this list to create new connections to the LDAP servers in this list.public java.lang.String toString()
toString
in class LDAPException
LDAPException.errorCodeToString(int)