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

# InboundContractError

> Class exported by @botmesh/core/testing.

Defined in: [testing/inboundContract.ts:85](https://github.com/andresayac/botmesh/blob/main/packages/core/src/testing/inboundContract.ts#L85)

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

## Extends

* `Error`

## Constructors

### Constructor

```ts theme={null}
new InboundContractError(violations): InboundContractError;
```

Defined in: [testing/inboundContract.ts:87](https://github.com/andresayac/botmesh/blob/main/packages/core/src/testing/inboundContract.ts#L87)

#### Parameters

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

#### Returns

`InboundContractError`

#### Overrides

`Error.constructor`

## Properties

### violations

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

Defined in: [testing/inboundContract.ts:86](https://github.com/andresayac/botmesh/blob/main/packages/core/src/testing/inboundContract.ts#L86)


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