public class

MailSizeExceededException

extends MailException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ com.atlassian.bitbucket.ServiceException
           ↳ com.atlassian.bitbucket.mail.MailException
             ↳ com.atlassian.bitbucket.mail.MailSizeExceededException

Class Overview

Indicates there was an attempt to send a mail message that exceeds the configured size limit. Regarding logging instances of this exception, see MailException.

Summary

Public Constructors
MailSizeExceededException(KeyedMessage message, int size, int maxSize)
Constructs a new MailSizeExceededException.
Public Methods
int getMaxSize()
int getSize()
[Expand]
Inherited Methods
From class com.atlassian.bitbucket.ServiceException
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public MailSizeExceededException (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

Public Methods

public int getMaxSize ()

Returns
  • the configured maximum size for a single mail message

public int getSize ()

Returns
  • the mail message's size