When you get validation error on DB, but.. don’t know what.

One day soon, my blog is going to be filled with lists of errors and what to do about them.

When you are working with data, (and who doesn’t work with data today..)  you may encounter validation error.  The error is straight forward, you are trying to insert invalid data.

The problem is that invalid error is not easy to see, specially when you have multiple fields.

You can write catch code like below and find some more insights.


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.