Closed kazzkiq closed 8 years ago
I think exceptions are the standard way to deal with errors. You can use a try-catch block and handle it however you want. The error being returned is a fatal error directly from the database so there would never be more than one.
For now, all I could find about handling errors when a query is executed is this piece from documentation:
However, I think that maybe a more manageable approach would be interesting. Example:
Some solution like the above would help make easier verifications over the query status.