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

# CapabilityContractError

> Class exported by @botmesh/core/testing.

Defined in: [testing/capabilityContract.ts:48](https://github.com/andresayac/botmesh/blob/main/packages/core/src/testing/capabilityContract.ts#L48)

Thrown by [assertCapabilityContract](https://botmesh.afaya.com.co/api/core/testing/functions/assertCapabilityContract.md); carries every violation found.

## Extends

* `Error`

## Constructors

### Constructor

```ts theme={null}
new CapabilityContractError(providerId, violations): CapabilityContractError;
```

Defined in: [testing/capabilityContract.ts:50](https://github.com/andresayac/botmesh/blob/main/packages/core/src/testing/capabilityContract.ts#L50)

#### Parameters

| Parameter | Type |
| - | - |
| `providerId` | `string` |
| `violations` | [`CapabilityViolation`](https://botmesh.afaya.com.co/api/core/testing/interfaces/CapabilityViolation)\[] |

#### Returns

`CapabilityContractError`

#### Overrides

`Error.constructor`

## Properties

### violations

```ts theme={null}
readonly violations: CapabilityViolation[];
```

Defined in: [testing/capabilityContract.ts:49](https://github.com/andresayac/botmesh/blob/main/packages/core/src/testing/capabilityContract.ts#L49)


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