2) Use exceptions when a ctor needs to advertise its failure and in other places where exceptions are really usefull.
... and make the exception in the ctor an option, not the default IMHO.
Too much exception is a bad thing anyway.
Yes, it has to be a really severe error, otherwise you start putting try/catch everywhere making your code ugly and your error handling unmaintainable.
We should try to help people resist the temptation of exceptions as they are a dangerous thing if not used very wisely (-:C
- Chris
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php