Skip to content
tRPC

Partners

Interface: TRPCClientErrorBase<TShape>

On this page

Defined in: packages/client/src/TRPCClientError.ts:15

What a client error has, whatever its router.

Type Parameters

Type Parameter
TShape extends DefaultErrorShape

Properties

data

readonly data: Maybe<TShape["data"]>

Defined in: packages/client/src/TRPCClientError.ts:20

The shape's data, such as the tRPC code and HTTP status.


message

readonly message: string

Defined in: packages/client/src/TRPCClientError.ts:16


shape

readonly shape: Maybe<TShape>

Defined in: packages/client/src/TRPCClientError.ts:18

The error as the server's error formatter shaped it, if it came from the server.