Typesafe Error Handling
How to intercept, handle or log errors inside oRPC
Typed errors
Note: typesafe errors are coverage in every oRPC packages:
@orpc/client
,@orpc/react-query
,@orpc/vue-query
,@orpc/vue-colada
, ... Please useisDefinedError
orsafe
to typesafe handle errors. Export from@orpc/contract
,@orpc/server
, and@orpc/client
.