Class MailException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
com.codename1.backend.mail.MailException
- Direct Known Subclasses:
MailSendException
A mail that could not be sent: the server could not be reached, refused
the sender, or refused the message.
-
Constructor Summary
ConstructorsConstructorDescriptionMailException(String message) A failure with a description of what was being done.MailException(String message, Throwable cause) A failure caused by another. -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether sending the same mail again can never succeed: the server answered with a permanent refusal.Methods inherited from class Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MailException
A failure with a description of what was being done. -
MailException
-
-
Method Details
-
isPermanent
public boolean isPermanent()Whether sending the same mail again can never succeed: the server answered with a permanent refusal. A failure that is not permanent -- a timeout, a dropped connection, a "try again later" -- is retried.
-