# DistributionInvalidInputError

Defined in: [packages/distribution/src/errors.ts:27](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/distribution/src/errors.ts#L27)

Thrown when an input cannot describe or evaluate a distribution.

## Extends

* [`InvalidInputError`](/reference/knotkit/errors/classes/invalidinputerror/)<[`DistributionInvalidInputErrorCode`](/reference/knotkit/distribution/type-aliases/distributioninvalidinputerrorcode/)>

## Constructors

### Constructor

> **new DistributionInvalidInputError**(`code`, `message`): `DistributionInvalidInputError`

Defined in: [packages/errors/src/index.ts:40](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/errors/src/index.ts#L40)

#### Parameters

##### code

`"INVALID_ARGUMENT"` | `"INVALID_PARAMETER"` | `"INVALID_PROBABILITY"` | `"INVALID_MOMENT_ORDER"` | `"INVALID_TABLE"` | `"INVALID_CALLBACK_VALUE"` | `"QUANTILE_NOT_BRACKETED"` | `"INVALID_SAMPLE"` | `"ZERO_VARIANCE"`

##### message

`string`

#### Returns

`DistributionInvalidInputError`

#### Inherited from

[`InvalidInputError`](/reference/knotkit/errors/classes/invalidinputerror/).[`constructor`](/reference/knotkit/errors/classes/invalidinputerror/#constructor)

## Properties

### moduleName

> `readonly` **moduleName**: `"knotkit/distribution"`

Defined in: [packages/distribution/src/errors.ts:28](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/distribution/src/errors.ts#L28)

#### Overrides

[`InvalidInputError`](/reference/knotkit/errors/classes/invalidinputerror/).[`moduleName`](/reference/knotkit/errors/classes/invalidinputerror/#modulename)

***

### \_tag

> `readonly` **\_tag**: `"InvalidInputError"`

Defined in: [packages/errors/src/index.ts:38](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/errors/src/index.ts#L38)

#### Inherited from

[`InvalidInputError`](/reference/knotkit/errors/classes/invalidinputerror/).[`_tag`](/reference/knotkit/errors/classes/invalidinputerror/#_tag)

***

### code

> `readonly` **code**: `"INVALID_ARGUMENT"` | `"INVALID_PARAMETER"` | `"INVALID_PROBABILITY"` | `"INVALID_MOMENT_ORDER"` | `"INVALID_TABLE"` | `"INVALID_CALLBACK_VALUE"` | `"QUANTILE_NOT_BRACKETED"` | `"INVALID_SAMPLE"` | `"ZERO_VARIANCE"`

Defined in: [packages/errors/src/index.ts:41](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/errors/src/index.ts#L41)

#### Inherited from

[`InvalidInputError`](/reference/knotkit/errors/classes/invalidinputerror/).[`code`](/reference/knotkit/errors/classes/invalidinputerror/#code-1)
