# Function: isTRPCClientError()

> 

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

Defined in: [packages/client/src/TRPCClientError.ts:34](https://github.com/trpc/trpc/blob/57482b0bb09dce5c838dc8bf5727a943488bac61/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
