RE: [PHP-DEV] exceptions instead of errors
| From: | (Marcus Börger) | Date: | Mon, 12 May 2003 17:11:08 +0000 |
| Subject: | RE: [PHP-DEV] exceptions instead of errors | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-1450@lists.php.net to get a copy of this message | ||
At 04:07 12.05.2003, Steven Brown wrote:
The problem will be that catch-all exception handling will cause all code your project uses to act differently, whether it was designed to expect exceptions thrown from internal functions or not. Same deal with nested uses of internal functions in pre-exception-aware code like in Theo's example. In those cases, the error handling code will get skipped completely, which definitely wasn't intended by whoever wrote the code. It's probably best from a compatibility standpoint to have to indicate at point of use (like with that '%' prefix) that the surrounding code understands exceptions."try" is new so i cannot imagine any BC problem when try results in errors being converted into exceptions. marcus