Class 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 Detail

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