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:
  • Constructor Details

    • TooManyRequestsException

      public TooManyRequestsException(@NotNull @NotNull String message, @NotNull @NotNull Duration retryAfter)
      Parameters:
      message - exception message
      retryAfter - a duration after which another request should be attempted
  • Method Details

    • 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.