C# Class Novell.Directory.Ldap.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.
Inheritance: LdapException
显示文件 Open project: EventStore/csharp-ldap Class Usage Examples

Public Methods

Method Description
LdapReferralException ( ) : System

Constructs a default exception with no specific error information.

LdapReferralException ( System message ) : System

Constructs a default exception with a specified string as additional information. This form is used for lower-level errors.

LdapReferralException ( System message, System arguments ) : System

Constructs a default exception with a specified string as additional information. This form is used for lower-level errors.

LdapReferralException ( System message, System arguments, System rootException ) : System

Constructs a default exception with a specified string as additional information and an exception that indicates a failure to follow a referral. This excepiton applies only to synchronous operations and is thrown only on receipt of a referral when the referral was not followed.

LdapReferralException ( System message, System arguments, int resultCode, System serverMessage ) : System

Constructs an exception with a specified error string, result code, and an error message from the server.

LdapReferralException ( System message, System arguments, int resultCode, System serverMessage, System rootException ) : System

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 ( System message, int resultCode, System serverMessage ) : System

Constructs an exception with a specified error string, result code, and an error message from the server.

LdapReferralException ( System message, int resultCode, System serverMessage, System rootException ) : System

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.

ToString ( ) : System.String

returns a string of information about the exception and the the nested exceptions, if any.

getReferrals ( ) : System.String[]

Gets the list of referral URLs (Ldap URLs to other servers) returned by the Ldap server. The referral list may include URLs of a type other than ones for an Ldap server (for example, a referral URL other than ldap://something).

Private Methods

Method Description
setReferrals ( System urls ) : void

Sets the list of referrals

Method Details

LdapReferralException() public method

Constructs a default exception with no specific error information.
public LdapReferralException ( ) : System
return System

LdapReferralException() public method

Constructs a default exception with a specified string as additional information. This form is used for lower-level errors.
public LdapReferralException ( System message ) : System
message System The additional error information. ///
return System

LdapReferralException() public method

Constructs a default exception with a specified string as additional information. This form is used for lower-level errors.
public LdapReferralException ( System message, System arguments ) : System
message System The additional error information. ///
arguments System The modifying arguments to be included in the /// message string. /// ///
return System

LdapReferralException() public method

Constructs a default exception with a specified string as additional information and an exception that indicates a failure to follow a referral. This excepiton applies only to synchronous operations and is thrown only on receipt of a referral when the referral was not followed.
public LdapReferralException ( System message, System arguments, System rootException ) : System
message System The additional error information. /// /// ///
arguments System The modifying arguments to be included in the /// message string. /// ///
rootException System An exception which caused referral following to fail. ///
return System

LdapReferralException() public method

Constructs an exception with a specified error string, result code, and an error message from the server.
public LdapReferralException ( System message, System arguments, int resultCode, System serverMessage ) : System
message System The additional error information. /// ///
arguments System The modifying arguments to be included in the /// message string. /// ///
resultCode int The result code returned. /// ///
serverMessage System Error message specifying additional information /// from the server. ///
return System

LdapReferralException() public method

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.
public LdapReferralException ( System message, System arguments, int resultCode, System serverMessage, System rootException ) : System
message System The additional error information. /// ///
arguments System The modifying arguments to be included in the /// message string. /// ///
resultCode int The result code returned. /// ///
serverMessage System Error message specifying additional information /// from the server. ///
rootException System
return System

LdapReferralException() public method

Constructs an exception with a specified error string, result code, and an error message from the server.
public LdapReferralException ( System message, int resultCode, System serverMessage ) : System
message System The additional error information. /// ///
resultCode int The result code returned. /// ///
serverMessage System Error message specifying additional information /// from the server. ///
return System

LdapReferralException() public method

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.
public LdapReferralException ( System message, int resultCode, System serverMessage, System rootException ) : System
message System The additional error information. /// ///
resultCode int The result code returned. /// ///
serverMessage System Error message specifying additional information /// from the server. ///
rootException System
return System

ToString() public method

returns a string of information about the exception and the the nested exceptions, if any.
public ToString ( ) : System.String
return System.String

getReferrals() public method

Gets the list of referral URLs (Ldap URLs to other servers) returned by the Ldap server. The referral list may include URLs of a type other than ones for an Ldap server (for example, a referral URL other than ldap://something).
public getReferrals ( ) : System.String[]
return System.String[]