Skip to content

Class: UKomiRateLimitException ​

Thrown when a per-user rate limit is hit (HTTP 429). retryAfterSeconds carries the cool-down duration when available.

Extends ​

Constructors ​

Constructor ​

ts
new UKomiRateLimitException(retryAfterSeconds?: number, cause?: Error): UKomiRateLimitException;

Parameters ​

retryAfterSeconds? ​

number

cause? ​

Error

Returns ​

UKomiRateLimitException

Overrides ​

UKomiApiException.constructor

Properties ​

cause? ​

ts
optional cause?: Error;

Optional underlying error that caused this exception

Inherited from ​

UKomiApiException.cause


code ​

ts
code: number;

HTTP status code or API error code

Inherited from ​

UKomiApiException.code


details? ​

ts
optional details?: unknown;

Raw response body from the API. Shape is API-version dependent, not part of the stable surface — prefer the specialized exception subclasses.

Inherited from ​

UKomiApiException.details


retryAfterSeconds? ​

ts
readonly optional retryAfterSeconds?: number;