note 35535 deleted from function.error-reporting by bjori
| From: | bjori@php.net | Date: | Mon, 24 Apr 2006 15:30:41 +0000 |
| Subject: | note 35535 deleted from function.error-reporting by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-109464@lists.php.net to get a copy of this message | ||
Note Submitter: hughjonesd at yahoo dot co dot uk
----
In response to peterdodge below: sometimes it's a good idea to throw errors, because they warn
the developer (or user) that something is wrong. It might be better to throw an error, but to set up
a good error handler in order to display a useful error page or message to the reader. If
you're clever, you can even set up a stack of error handlers, and have errors
"thrown" and "caught" at different points in your script.