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

# ConfigValidationError

> Class exported by @botmesh/core.

Defined in: [utils/validateConfig.ts:28](https://github.com/andresayac/botmesh/blob/main/packages/core/src/utils/validateConfig.ts#L28)

A `BotConfig` option with an invalid value; `field` is the option's dotted path (`'durability.pollMs'`).

## Extends

* `Error`

## Constructors

### Constructor

```ts theme={null}
new ConfigValidationError(
   field, 
   expected, 
   received
): ConfigValidationError;
```

Defined in: [utils/validateConfig.ts:29](https://github.com/andresayac/botmesh/blob/main/packages/core/src/utils/validateConfig.ts#L29)

#### Parameters

| Parameter | Type |
| - | - |
| `field` | `string` |
| `expected` | `string` |
| `received` | `unknown` |

#### Returns

`ConfigValidationError`

#### Overrides

`Error.constructor`

## Properties

### field

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

Defined in: [utils/validateConfig.ts:30](https://github.com/andresayac/botmesh/blob/main/packages/core/src/utils/validateConfig.ts#L30)

***

### expected

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

Defined in: [utils/validateConfig.ts:31](https://github.com/andresayac/botmesh/blob/main/packages/core/src/utils/validateConfig.ts#L31)

***

### received

```ts theme={null}
readonly received: unknown;
```

Defined in: [utils/validateConfig.ts:32](https://github.com/andresayac/botmesh/blob/main/packages/core/src/utils/validateConfig.ts#L32)


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