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
readonlydata:Maybe<TShape["data"]>
Defined in: packages/client/src/TRPCClientError.ts:20
The shape's data, such as the tRPC code and HTTP status.
message
readonlymessage:string
Defined in: packages/client/src/TRPCClientError.ts:16
shape
readonlyshape: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.