RateLimitExceededException

class RateLimitExceededException(val resetAtEpochSeconds: Long?) : Exception

Thrown when the PUBG API returns HTTP 429 (Too Many Requests).

This exception is thrown even when a RateLimiter is in use, as a 429 can still occur if multiple dev.pubgkt.PubgApi instances share the same API key, or if the rate limit was consumed externally.

See also

Constructors

Link copied to clipboard
constructor(resetAtEpochSeconds: Long?)

Properties

Link copied to clipboard
expect open val cause: Throwable?
Link copied to clipboard
expect open val message: String?
Link copied to clipboard

The UNIX timestamp at which the rate-limit window resets, as reported by the X-RateLimit-Reset response header, or null if the header was absent.