> ## 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.

# ProviderNotLeaderError

> Class exported by @botmesh/core.

Defined in: [coordination/botCoordination.ts:22](https://github.com/andresayac/botmesh/blob/main/packages/core/src/coordination/botCoordination.ts#L22)

`bot.send()` (or a reply) on a replica that is not the provider session's leader, with
`providerSession: 'leader'`: this replica's transport is not connected.

## Extends

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

## Constructors

### Constructor

```ts theme={null}
new ProviderNotLeaderError(providerId): ProviderNotLeaderError;
```

Defined in: [coordination/botCoordination.ts:23](https://github.com/andresayac/botmesh/blob/main/packages/core/src/coordination/botCoordination.ts#L23)

#### Parameters

| Parameter | Type |
| - | - |
| `providerId` | `string` |

#### Returns

`ProviderNotLeaderError`

#### Overrides

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

## Properties

### providerId

```ts theme={null}
readonly providerId: string;
```

Defined in: [coordination/botCoordination.ts:23](https://github.com/andresayac/botmesh/blob/main/packages/core/src/coordination/botCoordination.ts#L23)


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