Class ReferralException

All Implemented Interfaces:
SWIG_DSAPIConstants, Serializable, Iterable<Referral>

public class ReferralException extends IndicationException implements Iterable<Referral>
Thrown when a directory is unable to fulfil a request but returns a referral which includes information about what other directory servers may be able to do so.
Author:
nh
See Also:
  • Constructor Details

    • ReferralException

      public ReferralException(Indication ind, int nativeErrorCode)
      This is the constructor that JNI will use
      Parameters:
      ind -
      nativeErrorCode -
    • ReferralException

      public ReferralException(String message)
      Not intended to be used.
      Parameters:
      message -
  • Method Details

    • getMessage

      public String getMessage()
      Returns a String containing information about the operation which caused the exception, and the referral which was returned.
      Overrides:
      getMessage in class IndicationException
      Returns:
      a String containing details about the exception.
    • iterator

      public Iterator<Referral> iterator()
      Returns an iterator over the referrals for this object.
      Specified by:
      iterator in interface Iterable<Referral>
      Returns:
      an iterator that can be used to process all the referrals represented by this exception