Interface: TRPCErrorShape<TData>
On this page
Defined in: packages/server/src/unstable-core-do-not-import/rpc/envelopes.ts:11
The error object of an error response: a JSON-RPC code, a message and
any data the error formatter adds.
See
https://trpc.io/docs/rpc#error-response
Type Parameters
| Type Parameter | Default type |
|---|---|
TData extends object | object |
Properties
code
code:
TRPC_ERROR_CODE_NUMBER
Defined in: packages/server/src/unstable-core-do-not-import/rpc/envelopes.ts:12
data
data:
TData
Defined in: packages/server/src/unstable-core-do-not-import/rpc/envelopes.ts:15
Extra details, such as the tRPC code and HTTP status.
message
message:
string
Defined in: packages/server/src/unstable-core-do-not-import/rpc/envelopes.ts:13