You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I exec a query that violates a constraint, I get an error back, but unfortunately the fields in it seem to be opaque to me. What is most of interest in the error is the name of the constraint that the query violated. Based on this, I could prepare a friendly message to the user explaining what the problem with their request is.
I suppose I could parse the error string given by Error(), but if there were a friendlier way to get at that constraint name, that would be nice.
The text was updated successfully, but these errors were encountered:
When I exec a query that violates a constraint, I get an error back, but unfortunately the fields in it seem to be opaque to me. What is most of interest in the error is the name of the constraint that the query violated. Based on this, I could prepare a friendly message to the user explaining what the problem with their request is.
I suppose I could parse the error string given by Error(), but if there were a friendlier way to get at that constraint name, that would be nice.
The text was updated successfully, but these errors were encountered: