# Function: isTRPCClientError()

> 

> **isTRPCClientError**\<`TInferrable`\>(`cause`): `cause is TRPCClientError<TInferrable>`

Defined in: [packages/client/src/TRPCClientError.ts:34](https://github.com/trpc/trpc/blob/7c907acfd8b31929214792e3b8c2ad7a8ac72563/packages/client/src/TRPCClientError.ts#L34)

Whether a value is a `TRPCClientError`, typed for a router or procedure.

## Type Parameters

| Type Parameter |
| ------ |
| `TInferrable` *extends* `InferrableClientTypes` |

## Parameters

| Parameter | Type |
| ------ | ------ |
| `cause` | `unknown` |

## Returns

`cause is TRPCClientError<TInferrable>`

## See

https://trpc.io/docs/client/vanilla/error-handling#catching-a-thrown-error
