Module jakarta.mail

Class IMAPReferralException

  • All Implemented Interfaces:
    java.io.Serializable

    public class IMAPReferralException
    extends ProtocolException
    A ProtocolException that includes IMAP login referral information.
    Since:
    JavaMail 1.5.5
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      IMAPReferralException​(java.lang.String s, java.lang.String url)
      Constructs an IMAPReferralException with the specified detail message.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getUrl()
      Return the IMAP URL in the referral.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • IMAPReferralException

        public IMAPReferralException​(java.lang.String s,
                                     java.lang.String url)
        Constructs an IMAPReferralException with the specified detail message. and URL.
        Parameters:
        s - the detail message
        url - the URL
    • Method Detail

      • getUrl

        public java.lang.String getUrl()
        Return the IMAP URL in the referral.
        Returns:
        the IMAP URL