> ## Documentation Index
> Fetch the complete documentation index at: https://botmesh.afaya.com.co/llms.txt
> Use this file to discover all available pages before exploring further.

# RateLimitedError

> Class exported by @botmesh/core.

Defined in: [core/provider.ts:737](https://github.com/andresayac/botmesh/blob/main/packages/core/src/core/provider.ts#L737)

Server-signalled quota (Telegram 429 retry\_after, Discord bucket, Cloud API tier).

## Extends

* [`ProviderError`](https://botmesh.afaya.com.co/api/core/classes/ProviderError)

## Constructors

### Constructor

```ts theme={null}
new RateLimitedError(retryAfterMs, message?): RateLimitedError;
```

Defined in: [core/provider.ts:743](https://github.com/andresayac/botmesh/blob/main/packages/core/src/core/provider.ts#L743)

#### Parameters

| Parameter | Type |
| - | - |
| `retryAfterMs` | `number` |
| `message?` | `string` |

#### Returns

`RateLimitedError`

#### Overrides

[`ProviderError`](https://botmesh.afaya.com.co/api/core/classes/ProviderError).[`constructor`](https://botmesh.afaya.com.co/api/core/classes/ProviderError#constructor)

## Properties

### retryAfterMs

```ts theme={null}
readonly retryAfterMs: number;
```

Defined in: [core/provider.ts:742](https://github.com/andresayac/botmesh/blob/main/packages/core/src/core/provider.ts#L742)

How long the transport asked to wait, in ms. Capped at 24 h (`86_400_000`), so a
wait built on it never overflows `setTimeout` (which fires at once past \~24.8 days).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.