tRPCttRPC
Powered by
Emmie PäivärintaE
tRPC•6mo ago•
2 replies
Emmie Päivärinta

Customizing the TRPCError type

I can't find anything in the docs about customizing the TRPCError type if I need to transmit extra properties etc along with the errors, or adding custom error codes. Can I amend the TRPCError type with my own interface?
What is the "correct" way to do this?
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

TRPCError: Missing content-type header
BenfaBBenfa / ❓-help
8mo ago
TRPCError that has TRPCError as cause
TkDodo 🔮TTkDodo 🔮 / ❓-help
3y ago
Catch TRPCError, ZoddError on the front-end
CaptainCCaptain / ❓-help
4y ago
How do I fix the "TRPCError: Duplicate id undefined"?
Answer OverflowAAnswer Overflow / ❓-help
3y ago