Re: Exceptions and Errors

From: Date: Tue, 13 Apr 2004 20:16:52 +0000
Subject: Re: Exceptions and Errors
References: 1 2 3 4 5 6 7 8 9 10 11  Groups: php.internals 
Request: Send a blank email to internals+get-9116@lists.php.net to get a copy of this message
On Tue, 13 Apr 2004, Marcus Boerger wrote: Hello Marcus -- > This brings us back to an old problem the severity levels are inconsistent. > And further more we decided some time back that E_ERRORs shouldn't be > converted to exceptions because of a few E_ERRORs that might not be > continuable. From my point of view we should do two things: > 1) convert the non continuable E_ERRORs to a higher severity (if there are > any at all) Is there a reason not to move non-continuable E_ERRORs to E_WARNINGs? This prevents us from adding another severity level and also allows us to make all E_ERRORs fatal in the process. > 2) Use exceptions when a ctor needs to advertise its failure and in other > places where exceptions are really usefull. > > Too much exception is a bad thing anyway. There's so much anti-exception sentiment on this list, I wonder how they ever made it into PHP 5 in the first place. :) But, seriously, besides for ctors, when do people here expect developers to use exceptions? -adam -- adam@trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today!

« previous php.internals (#9116) next »