Closed Allyedge closed 1 year ago
@Allyedge any tips on how you ended up doing error handling?
I'm trying to parse out a unique constraint failing. Thanks!
@Allyedge any tips on how you ended up doing error handling?
I'm trying to parse out a unique constraint failing. Thanks!
I honestly didn't use it at the end, couldn't really find out a way so I used something else instead.
I am getting this error from my database because I have an unique constraint set up, which is okay.
But is there a way I can perhaps extract the error code
AlreadyExists
from it to send back a different response to my client?Thanks!