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

# IdentityContractError

> Class exported by @botmesh/core/testing.

Defined in: [testing/identityContract.ts:131](https://github.com/andresayac/botmesh/blob/main/packages/core/src/testing/identityContract.ts#L131)

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

## Extends

* `Error`

## Constructors

### Constructor

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

Defined in: [testing/identityContract.ts:133](https://github.com/andresayac/botmesh/blob/main/packages/core/src/testing/identityContract.ts#L133)

#### Parameters

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

#### Returns

`IdentityContractError`

#### Overrides

`Error.constructor`

## Properties

### violations

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

Defined in: [testing/identityContract.ts:132](https://github.com/andresayac/botmesh/blob/main/packages/core/src/testing/identityContract.ts#L132)


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