# 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#L1040)

## `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#L1040)

## `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#L1040)

## `TypedData.InvalidDomainError`

Thrown when the domain is invalid.

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

## `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#L1040)

## `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#L1040)
