Prisma Error Handling
I have a combination ID on a table to enforce uniqueness of entity relations. I would like to send the user a message based on the error returned by Prisma. Normally, Prisma library provides errors to handle this: https://www.prisma.io/docs/orm/prisma-client/debugging-and-troubleshooting/handling-exceptions-and-errors
However, I am unable to import these Prisma errors to my server code. Is there a way to do this? Thanks.
However, I am unable to import these Prisma errors to my server code. Is there a way to do this? Thanks.