Class LDAPReferralException

All Implemented Interfaces:
Serializable

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.
See Also:
  • Constructor Details

    • LDAPReferralException

      Creates a new LDAP referral exception with no information.
    • LDAPReferralException

      public LDAPReferralException(@Nullable String message, int resultCode, @Nullable String serverErrorMessage)
      Creates a new LDAP referral exception with the provided information.
      Parameters:
      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.
    • LDAPReferralException

      public LDAPReferralException(@Nullable String message, int resultCode, @NotNull String[] referrals)
      Creates a new LDAP referral exception with the provided information.
      Parameters:
      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.
    • LDAPReferralException

      Creates a new LDAP referral exception from the provided LDAPException object.
      Parameters:
      ldapException - The LDAPException object to use for this LDAP interrupted exception.
    • LDAPReferralException

      Creates a new LDAP referral exception from the provided SearchResultReference object.
      Parameters:
      reference - The SearchResultReference object to use to create this exception.
  • Method Details

    • getURLs

      @NotNull public String[] getURLs()
      Retrieves the set of referral URLs for this exception.
      Returns:
      The set of referral URLs for this exception.