Skip to main content
Version: 11.x

Interface: TRPCErrorResponse<TError>

Defined in: packages/server/src/unstable-core-do-not-import/rpc/envelopes.ts:80

All requests/responses extends this shape

Extends​

Type Parameters​

Type ParameterDefault type
TError extends TRPCErrorShapeTRPCErrorShape

Properties​

error​

error: TError

Defined in: packages/server/src/unstable-core-do-not-import/rpc/envelopes.ts:49

Inherited from​

ErrorResponse.error


id?​

optional id: RequestId

Defined in: packages/server/src/unstable-core-do-not-import/rpc/envelopes.ts:25

Inherited from​

ErrorResponse.id


jsonrpc?​

optional jsonrpc: "2.0"

Defined in: packages/server/src/unstable-core-do-not-import/rpc/envelopes.ts:26

Inherited from​

ErrorResponse.jsonrpc