Re: My Experience with PHP5 Error Handling (and possible
| From: | Greg Beaver | Date: | Thu, 26 Aug 2004 06:34:27 +0000 |
| Subject: | Re: My Experience with PHP5 Error Handling (and possible | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-32955@lists.php.net to get a copy of this message | ||
Alexey Borzov wrote:
Thanks, Greg, that's a wonderful description. I'd like to repeat: this stuff requires a separate RFC as it really deals with intricacies of handling the existing errors. I think I'll support this hypothetical RFC. ;)I can see the distinction. Signalling or raising errors is indeed different from handling. I'm not sure I completely agree that they should be considered independently. I do mean I'm not sure :) (it's very late here and I'm not operating with all cylinders) but I think that the decision of how to signal an error is crucial to making error handling work. However the basic caveman-style statement: "throw errors that are fatal, don't throw errors that must not be fatal. Within method context. Oog." appears to sum up the most important point of the existing RFC. The question of how to *signal* multiple errors with a single exception object is something that is most likely a technical question, but once the technique(s) is(are) worked out, I think it(they) should become a part of the official signalling RFC so that users/developers can interoperate. Same thing with signalling warnings. Greg