|
All LDAP Classes Internal LDAP Classes |
||||||||
| 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.novell.ldap.LDAPException
com.novell.ldap.LDAPReferralException
public class LDAPReferralException
Thrown when a server returns a referral and when a referral has not been followed. It contains a list of URL strings corresponding to the referrals or search continuation references received on an LDAP operation.
| Field Summary | |
|---|---|
private java.lang.String |
failedReferral
|
private java.lang.String[] |
referrals
|
| 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 serverMessage)
Constructs an exception with a specified error string, result code, and an error message from the server. |
|
LDAPReferralException(java.lang.String message,
int resultCode,
java.lang.String serverMessage,
java.lang.Throwable rootException)
Constructs an exception with a specified error string, result code, an error message from the server, and an exception that indicates a failure to follow a referral. |
|
LDAPReferralException(java.lang.String message,
java.lang.Object[] arguments)
Constructs a default exception with a specified string as additional information. |
|
LDAPReferralException(java.lang.String message,
java.lang.Object[] arguments,
int resultCode,
java.lang.String serverMessage)
Constructs an exception with a specified error string, result code, and an error message from the server. |
|
LDAPReferralException(java.lang.String message,
java.lang.Object[] arguments,
int resultCode,
java.lang.String serverMessage,
java.lang.Throwable rootException)
Constructs an exception with a specified error string, result code, an error message from the server, and an exception that indicates a failure to follow a referral. |
|
LDAPReferralException(java.lang.String message,
java.lang.Object[] arguments,
java.lang.Throwable rootException)
Constructs a default exception with a specified string as additional information and an exception that indicates a failure to follow a referral. |
|
LDAPReferralException(java.lang.String message,
java.lang.Throwable rootException)
Constructs a default exception with a specified string as additional information and an exception that indicates a failure to follow a referral. |
|
| Method Summary | |
|---|---|
java.lang.String |
getFailedReferral()
|
java.lang.String[] |
getReferrals()
Gets the list of referral URLs (LDAP URLs to other servers) returned by the LDAP server. |
void |
setFailedReferral(java.lang.String url)
Sets a referral that could not be processed |
(package private) void |
setReferrals(java.lang.String[] urls)
Sets the list of referrals |
java.lang.String |
toString()
returns a string of information about the exception and the the nested exceptions, if any. |
| Methods inherited from class com.novell.ldap.LDAPException |
|---|
getCause, getExceptionString, getLDAPErrorMessage, getLocalizedMessage, getMatchedDN, getMessage, getResultCode, resultCodeToString, resultCodeToString, resultCodeToString, resultCodeToString |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, 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 |
|---|
private java.lang.String failedReferral
private java.lang.String[] referrals
| Constructor Detail |
|---|
public LDAPReferralException()
public LDAPReferralException(java.lang.String message)
This form is used for lower-level errors.
message - The additional error information.
public LDAPReferralException(java.lang.String message,
java.lang.Object[] arguments)
This form is used for lower-level errors.
arguments - The modifying arguments to be included in the
message string.message - The additional error information.
public LDAPReferralException(java.lang.String message,
java.lang.Throwable rootException)
message - The additional error information.
rootException - An exception which caused referral following to fail.
public LDAPReferralException(java.lang.String message,
java.lang.Object[] arguments,
java.lang.Throwable rootException)
message - The additional error information.
arguments - The modifying arguments to be included in the
message string.
rootException - An exception which caused referral following to fail.
public LDAPReferralException(java.lang.String message,
int resultCode,
java.lang.String serverMessage)
message - The additional error information.
resultCode - The result code returned.
serverMessage - Error message specifying additional information
from the server.
public LDAPReferralException(java.lang.String message,
java.lang.Object[] arguments,
int resultCode,
java.lang.String serverMessage)
message - The additional error information.
arguments - The modifying arguments to be included in the
message string.
resultCode - The result code returned.
serverMessage - Error message specifying additional information
from the server.
public LDAPReferralException(java.lang.String message,
int resultCode,
java.lang.String serverMessage,
java.lang.Throwable rootException)
message - The additional error information.
resultCode - The result code returned.
serverMessage - Error message specifying additional information
from the server.
public LDAPReferralException(java.lang.String message,
java.lang.Object[] arguments,
int resultCode,
java.lang.String serverMessage,
java.lang.Throwable rootException)
message - The additional error information.
arguments - The modifying arguments to be included in the
message string.
resultCode - The result code returned.
serverMessage - Error message specifying additional information
from the server.| Method Detail |
|---|
public java.lang.String getFailedReferral()
public java.lang.String[] getReferrals()
public void setFailedReferral(java.lang.String url)
url - The referral URL that could not be processed.void setReferrals(java.lang.String[] urls)
urls - the list of referrals returned by the LDAP server in a
single response.public java.lang.String toString()
toString in class LDAPException
|
All LDAP Classes Internal LDAP Classes |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||