Class AnnotationsLimitExceededException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.atlassian.bitbucket.ServiceException
com.atlassian.bitbucket.codeinsights.annotation.AnnotationsLimitExceededException
- All Implemented Interfaces:
Serializable
public class AnnotationsLimitExceededException
extends com.atlassian.bitbucket.ServiceException
Thrown when the limit for annotations would be exceeded if the request is fulfilled.
- Since:
- 5.15
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAnnotationsLimitExceededException
(com.atlassian.bitbucket.i18n.KeyedMessage message, int count, int limit) -
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
-
AnnotationsLimitExceededException
public AnnotationsLimitExceededException(@Nonnull com.atlassian.bitbucket.i18n.KeyedMessage message, int count, int limit)
-
-
Method Details
-
getCount
public int getCount()- Returns:
- The number of existing annotations
-
getLimit
public int getLimit()- Returns:
- the maximum number of annotations allowed for a report
-