Package com.atlassian.bitbucket.mail
Class MailSizeExceededException
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
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorDescriptionMailSizeExceededException
(KeyedMessage message, int size, int maxSize) Constructs a newMailSizeExceededException
. -
Method Summary
Methods inherited from class com.atlassian.bitbucket.ServiceException
getKeyedMessage, getLocalizedMessage, getMessageKey
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MailSizeExceededException
Constructs a newMailSizeExceededException
.- Parameters:
message
- the error messagesize
- the mail message's sizemaxSize
- 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
-