# Function: isTRPCClientError()

> 

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

Defined in: packages/client/dist/types-BG-3kpeg.d.mts:112

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
