|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.unboundid.ldap.sdk.migrate.ldapjdk.LDAPException
com.unboundid.ldap.sdk.migrate.ldapjdk.LDAPReferralException
@NotExtensible @NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public class LDAPReferralException
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
LDAPException
class should be used instead.
Field Summary |
---|
Constructor Summary | |
---|---|
LDAPReferralException()
Creates a new LDAP referral exception with no information. |
|
LDAPReferralException(LDAPException ldapException)
Creates a new LDAP referral exception from the provided LDAPException object. |
|
LDAPReferralException(SearchResultReference reference)
Creates a new LDAP referral exception from the provided SearchResultReference object. |
|
LDAPReferralException(java.lang.String message,
int resultCode,
java.lang.String serverErrorMessage)
Creates a new LDAP referral exception with the provided information. |
|
LDAPReferralException(java.lang.String message,
int resultCode,
java.lang.String[] referrals)
Creates a new LDAP referral exception with the provided information. |
Method Summary | |
---|---|
java.lang.String[] |
getURLs()
Retrieves the set of referral URLs for this exception. |
Methods inherited from class com.unboundid.ldap.sdk.migrate.ldapjdk.LDAPException |
---|
errorCodeToString, errorCodeToString, errorCodeToString, errorCodeToString, getLDAPErrorMessage, getLDAPResultCode, getMatchedDN, toLDAPException, toString |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LDAPReferralException()
public LDAPReferralException(java.lang.String message, int resultCode, java.lang.String serverErrorMessage)
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.public LDAPReferralException(java.lang.String message, int resultCode, java.lang.String[] referrals)
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.public LDAPReferralException(LDAPException ldapException)
LDAPException
object.
ldapException
- The LDAPException
object to use for this
LDAP interrupted exception.public LDAPReferralException(SearchResultReference reference)
SearchResultReference
object.
reference
- The SearchResultReference
object to use to
create this exception.Method Detail |
---|
public java.lang.String[] getURLs()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |