Re: Exceptions and a real example: Tidy
| From: | John Coggeshall | Date: | Fri, 16 Apr 2004 16:17:52 +0000 |
| Subject: | Re: Exceptions and a real example: Tidy | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-9264@lists.php.net to get a copy of this message | ||
On Fri, 2004-04-16 at 12:01, Christian Schneider wrote:
> I think this is wrong.
> For E_WARNING the program flow continues unchanged whether you handle
> the return value of e.g. fopen or not.
> For exceptions you _have_ to handle it, otherwise your program aborts.
> Two different things.
I agree, however ZE2 does not provide non-fatal exceptions so I consider
this an engine limitation rather than a implementation error. This is
the best compromise I can reach without discarding exceptions entirely,
which I believe is even more wrong for OO code.
John
--
-=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=-
John Coggeshall http://www.coggeshall.org/
The PHP Developer's Handbook http://www.php-handbook.com/
-=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=-