Skip to content

constructor ​

Overview ​

Creates an instance of RateLimitedError.

Signature ​

constructor(messagePrefix, response, responseData)

Parameters ​

NameTypeRequiredDescription
messagePrefixstringyesThe first sentence of the error message, without a period.
responseResponsenoThe response object associated with the error.
responseDataanynoThe data returned in the response.

Returns ​

RateLimitedError

Source ​

client/lib/utils/errors.js:91