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

# CoordinationUnavailableError

> Class exported by @botmesh/core.

Defined in: [coordination/types.ts:74](https://github.com/andresayac/botmesh/blob/main/packages/core/src/coordination/types.ts#L74)

The coordinator could not grant a turn: the backend is unreachable, or the turn did
not come within `coordination.turnWaitMs`. The message is dropped unprocessed (its
dedupe key is released, so a transport redelivery is processed) and this error is
reported through the bot's `'error'` event.

## Extends

* `Error`

## Constructors

### Constructor

```ts theme={null}
new CoordinationUnavailableError(
   key, 
   reason, 
   options?
): CoordinationUnavailableError;
```

Defined in: [coordination/types.ts:75](https://github.com/andresayac/botmesh/blob/main/packages/core/src/coordination/types.ts#L75)

#### Parameters

| Parameter | Type |
| - | - |
| `key` | `string` |
| `reason` | `"timeout"` \| `"unavailable"` |
| `options?` | \{ `cause?`: `unknown`; } |
| `options.cause?` | `unknown` |

#### Returns

`CoordinationUnavailableError`

#### Overrides

`Error.constructor`

## Properties

### key

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

Defined in: [coordination/types.ts:76](https://github.com/andresayac/botmesh/blob/main/packages/core/src/coordination/types.ts#L76)

***

### reason

```ts theme={null}
readonly reason: "timeout" | "unavailable";
```

Defined in: [coordination/types.ts:77](https://github.com/andresayac/botmesh/blob/main/packages/core/src/coordination/types.ts#L77)


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