# HashParseError

Defined in: [packages/hash/src/errors.ts:35](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/hash/src/errors.ts#L35)

Thrown when a serialized hash identity is malformed or unsupported.

## Extends

* [`ParseError`](/reference/knotkit/errors/classes/parseerror/)<[`HashParseErrorCode`](/reference/knotkit/hash/type-aliases/hashparseerrorcode/)>

## Constructors

### Constructor

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

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

#### Parameters

##### code

`"UNKNOWN_KIND"` | `"INVALID_SHAPE"` | `"INVALID_SEED"` | `"UNSUPPORTED_VERSION"`

##### message

`string`

#### Returns

`HashParseError`

#### Inherited from

[`ParseError`](/reference/knotkit/errors/classes/parseerror/).[`constructor`](/reference/knotkit/errors/classes/parseerror/#constructor)

## Properties

### \_tag

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

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

#### Inherited from

[`ParseError`](/reference/knotkit/errors/classes/parseerror/).[`_tag`](/reference/knotkit/errors/classes/parseerror/#_tag)

***

### code

> `readonly` **code**: `"UNKNOWN_KIND"` | `"INVALID_SHAPE"` | `"INVALID_SEED"` | `"UNSUPPORTED_VERSION"`

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

#### Inherited from

[`ParseError`](/reference/knotkit/errors/classes/parseerror/).[`code`](/reference/knotkit/errors/classes/parseerror/#code-1)

***

### moduleName

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

Defined in: [packages/hash/src/errors.ts:36](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/hash/src/errors.ts#L36)

#### Overrides

[`ParseError`](/reference/knotkit/errors/classes/parseerror/).[`moduleName`](/reference/knotkit/errors/classes/parseerror/#modulename)
