Class MailSizeExceededException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.aquima.interactions.foundation.exception.MailSizeExceededException
All Implemented Interfaces:
Serializable

public class MailSizeExceededException extends Exception

Exception that occurs when the mail server does not allow the sending of the email due to the size of the email that exceeds the server's default allocated storage.

According to RFC 821 the status code of this type of error is 552 and means Requested mail action aborted due to exceeded storage allocation.

Since:
9.8
Author:
Voicu Moldovan
See Also:
  • Constructor Details

    • MailSizeExceededException

      public MailSizeExceededException()
      Default constructor.
    • MailSizeExceededException

      public MailSizeExceededException(String errorMessage)
      Constructor that sets only the error message
      Parameters:
      errorMessage - The massage that is transmitted along with this exception.
    • MailSizeExceededException

      public MailSizeExceededException(String errorMessage, Throwable cause)
      Constructor that sets the error message but also the cause of the exception.
      Parameters:
      errorMessage - The massage that is transmitted along with this exception.
      cause - The cause of the exception.