Class MailSizeExceededException

All Implemented Interfaces:
Serializable

public class MailSizeExceededException extends MailException
Indicates there was an attempt to send a mail message that exceeds the configured size limit. Regarding logging instances of this exception, see MailException.
See Also:
  • Constructor Details

    • MailSizeExceededException

      public MailSizeExceededException(@Nonnull KeyedMessage message, int size, int maxSize)
      Constructs a new MailSizeExceededException.
      Parameters:
      message - the error message
      size - the mail message's size
      maxSize - the configured size limit
      Since:
      6.0
  • Method Details

    • getMaxSize

      public int getMaxSize()
      Returns:
      the configured maximum size for a single mail message
      Since:
      6.0
    • getSize

      public int getSize()
      Returns:
      the mail message's size
      Since:
      6.0