Error handling strategies (db related)
| From: | Gary . | Date: | Tue, 27 Apr 2010 08:42:03 +0000 |
| Subject: | Error handling strategies (db related) | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-304640@lists.php.net to get a copy of this message | ||
How do you guys handle errors during, say, db insertions.
Let's say you have an ongoing transaction which fails on the n-th
insert. Ok, you roll back the transaction, no problem. How do you then
inform the user? Just using the text from pg_result_error or
something?