Class MailException

Direct Known Subclasses:
MailSendException

public class MailException extends IOException
A mail that could not be sent: the server could not be reached, refused the sender, or refused the message.
  • Constructor Details

    • MailException

      public MailException(String message)
      A failure with a description of what was being done.
    • MailException

      public MailException(String message, Throwable cause)
      A failure caused by another.
  • 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.