RateLimitException

class RateLimitException(message: String, val isGlobal: Boolean = false, val retryAfter: Long? = null) : HypixelException

Thrown when the API rate limit has been exceeded.

Constructors

Link copied to clipboard
constructor(message: String, isGlobal: Boolean = false, retryAfter: Long? = null)

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
val code: Int? = null

The HTTP status code associated with the error, if available.

Link copied to clipboard
val isGlobal: Boolean = false

Whether the rate limit was triggered by the global throttle.

Link copied to clipboard
open val message: String?
Link copied to clipboard
val retryAfter: Long? = null

The number of seconds to wait before retrying