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
public class TooManyRequestsException extends RuntimeException
Exception to be used when the number of Bamboo requests has exceeded an allowed threshold.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TooManyRequestsException(@NotNull String message, @NotNull Duration retryAfter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull Duration
getRetryAfter()
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
-
-
-
-
Method Detail
-
getRetryAfter
@NotNull public @NotNull Duration 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.
-
-