Re: exceptions instead of errors
| From: | Derick Rethans | Date: | Sun, 04 May 2003 15:30:40 +0000 |
| Subject: | Re: exceptions instead of errors | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-1203@lists.php.net to get a copy of this message | ||
On Sat, 3 May 2003, Andi Gutmans wrote:
> At 02:53 AM 5/4/2003 +0200, Marcus Börger wrote:
> >Some help of the engine would be good:
> >- automatically set EH_THROW mode at "try"
> >- automatically set EH_NORMAL mode at "catch" (first outmost catch)
>
> Huh? I think it's definitely not obvious that I'd want these to happen
> automatically. Actually I personally wouldn't, because I'd prefer PHP to
> continue the way it works and only use exceptions in user-land.
I don't see a problem with auto-detecting if exceptions should be trown
when somebody enters a try { } statement?
Derick
--
"my other box is your windows PC"
-------------------------------------------------------------------------
Derick Rethans http://derickrethans.nl/
PHP Magazine - PHP Magazine for Professionals http://php-mag.net/
-------------------------------------------------------------------------