Package com.atlassian.bamboo.exception
Class TooManyRequestsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.atlassian.bamboo.exception.TooManyRequestsException
- All Implemented Interfaces:
Serializable
Exception to be used when the number of Bamboo requests has exceeded an allowed threshold.
- See Also:
-
Constructor Summary
ConstructorDescriptionTooManyRequestsException
(@NotNull String message, @NotNull Duration retryAfter) -
Method Summary
Modifier and TypeMethodDescription@NotNull Duration
Duration after which the next request attempt should be made.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
Method Details
-
getRetryAfter
Duration after which the next request attempt should be made. Requests performed before the time passes are expected to be rejected, with the same exception thrown.
-