|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
netscape.ldap.LDAPException
netscape.ldap.LDAPReferralException
Represents the situation in which the LDAP server refers the client to
another LDAP server. This exception constructs a list of referral URLs from
the LDAP error message returned by the server. You can get this list by
using the getURLs
method.
LDAPException
,
Serialized FormField Summary | |
(package private) static long |
serialVersionUID
|
Constructor Summary | |
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. |
Method Summary | |
LDAPUrl[] |
getURLs()
Gets the list of referrals (LDAP URLs to other servers) returned by the LDAP server. |
Methods inherited from class netscape.ldap.LDAPException |
errorCodeToString, errorCodeToString, errorCodeToString, errorCodeToString, getLDAPErrorMessage, getLDAPResultCode, getMatchedDN, 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 |
Field Detail |
static final long serialVersionUID
Constructor Detail |
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 entriesMethod Detail |
public 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |