Re: PEAR_Error, ErrorStack, Exception, and compatibility
| From: | Alexey Borzov | Date: | Wed, 23 Jun 2004 11:50:12 +0000 |
| Subject: | Re: PEAR_Error, ErrorStack, Exception, and compatibility | ||
| References: | 1 2 3 4 5 6 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-31145@lists.php.net to get a copy of this message | ||
Hi,
Hans Lellelid wrote:
Using exceptions has the distinct advantage that it forces users to handle errors. In return-code or stack based error handling you can ignore errors or just forget to check for them, making for much more bug-prone code.Yes!!! And if anyone cares to look at the archives of pear-general, he'll see the huge amount of traffic which could be prevented if people checked for errors. If an error *can* be ignored, it *will* be ignored.