Function: getRbacErrorBody()
ts
function getRbacErrorBody(error): RbacErrorBody | null;Defined in: packages/trpc/src/errors.ts:74
The RbacErrorBody of an error thrown by a guard (the TRPCError, or its RbacAccessError cause), or null for any other error.
Parameters
| Parameter | Type |
|---|---|
error | unknown |
Returns
RbacErrorBody | null
