> **Can't find what you're looking for?** Use `search_docs` on the docs MCP server at `https://v3.viem.sh/api/mcp` to find what you need.

# TypedData Errors

:::info
`TypedData` is a re-export of ox's [`TypedData`](https://oxlib.sh/api/TypedData/errors). Refer to the ox documentation for the full reference.
:::

## `TypedData.BytesSizeMismatchError`

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

## `TypedData.InvalidArrayError`

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

## `TypedData.InvalidArrayLengthError`

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

## `TypedData.InvalidDomainError`

Thrown when the domain is invalid.

## `TypedData.InvalidPrimaryTypeError`

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

## `TypedData.InvalidStructTypeError`

Thrown when the struct type is not a valid type.
