java.lang.Object
java.lang.Throwable
java.lang.Exception
jakarta.mail.MessagingException
jakarta.mail.AuthenticationFailedException
org.eclipse.angus.mail.imap.ReferralException
- All Implemented Interfaces:
Serializable
A special kind of AuthenticationFailedException that indicates that
the reason for the failure was an IMAP REFERRAL in the response code.
See RFC 2221 for details.
- Since:
- JavaMail 1.5.5
- See Also:
-
Constructor Summary
ConstructorDescriptionReferralException
(String url, String text) Constructs an ReferralException with the specified URL and text. -
Method Summary
Methods inherited from class jakarta.mail.MessagingException
getCause, getNextException, setNextException, toString
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
ReferralException
Constructs an ReferralException with the specified URL and text.- Parameters:
text
- the detail messageurl
- the URL
-
-
Method Details
-
getUrl
Return the IMAP URL in the referral.- Returns:
- the IMAP URL
-
getText
Return the text sent by the server along with the referral.- Returns:
- the text
-