Class ReferralException

  • All Implemented Interfaces:
    SWIG_DSAPIConstants, java.io.Serializable, java.lang.Iterable<Referral>

    public class ReferralException
    extends IndicationException
    implements java.lang.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:
    Serialized Form
    • Constructor Detail

      • ReferralException

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

        public ReferralException​(java.lang.String message)
        Not intended to be used.
        Parameters:
        message -
    • Method Detail

      • getMessage

        public java.lang.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 java.util.Iterator<Referral> iterator()
        Returns an iterator over the referrals for this object.
        Specified by:
        iterator in interface java.lang.Iterable<Referral>
        Returns:
        an iterator that can be used to process all the referrals represented by this exception