Re: [PHP.next] Error-handling using "Error Events"
| From: | Kris Craig | Date: | Sun, 13 Apr 2014 12:01:21 +0000 |
| Subject: | Re: [PHP.next] Error-handling using "Error Events" | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-73680@lists.php.net to get a copy of this message | ||
>
> unless you change every piece of code to use
> individual exception class - which is a huge chunk of work and goes way
> beyond ini setting
That's just it. I know a lot of PHP developers who believe that's the
ideal way to go about it; that everything should be funneled through a
massive custom exception class(es). Those people would build their code
around that from the ground-up, anyway. As I mentioned earlier, a likely
example of this would be someone developing a new framework and they want
to control all error handling through there.
I'm not sure if I would take that approach on a given project, myself, but
I know a lot of people who would and I can see something like this being
very useful to them for their purposes.
--Kris