# TypedData Errors

## `TypedData.BytesSizeMismatchError`

Thrown when the bytes size of a typed data value does not match the expected size.

**Source:** [src/core/TypedData.ts](https://github.com/wevm/ox/blob/main/src/core/TypedData.ts#L765)

## `TypedData.InvalidArrayError`

Thrown when an array-typed value is not an array.

**Source:** [src/core/TypedData.ts](https://github.com/wevm/ox/blob/main/src/core/TypedData.ts#L839)

## `TypedData.InvalidArrayLengthError`

Thrown when a fixed-length array does not match its declared length.

**Source:** [src/core/TypedData.ts](https://github.com/wevm/ox/blob/main/src/core/TypedData.ts#L858)

## `TypedData.InvalidDomainError`

Thrown when the domain is invalid.

**Source:** [src/core/TypedData.ts](https://github.com/wevm/ox/blob/main/src/core/TypedData.ts#L780)

## `TypedData.InvalidPrimaryTypeError`

Thrown when the primary type of a typed data value is invalid.

**Source:** [src/core/TypedData.ts](https://github.com/wevm/ox/blob/main/src/core/TypedData.ts#L791)

## `TypedData.InvalidStructTypeError`

Thrown when the struct type is not a valid type.

**Source:** [src/core/TypedData.ts](https://github.com/wevm/ox/blob/main/src/core/TypedData.ts#L811)

## `TypedData.InvalidTypeError`

Thrown when a field type is not a valid EIP-712 type.

**Source:** [src/core/TypedData.ts](https://github.com/wevm/ox/blob/main/src/core/TypedData.ts#L824)
