Hello Derick,

Monday, August 8, 2005, 3:00:50 PM, you wrote:

> On Mon, 8 Aug 2005, Johannes Schlueter wrote:

>> On Monday 08 August 2005 15:04, Tobias Schlitt wrote:
>> > >  The throw an Exception when SPL disabled and an InvalidArgumentException
>> > >  when it is enabled.
>> >
>> > That's senseless when writing applications that shall be version
>> > independant. Just sticking to Exception should be fine.
>> 
>> No it is not, in your application you can still simply catch Exception to be
>> independent of SPL since the InvalidArgumentException class extends the 
>> Exception class.

> Throwing two different kinds of Exceptions is evil. It should be 
> consistent, not relying on an external component for it's exceptions. So
> it will be a normal Exception. This is a useles branch of this tread - 
> and it should end now.

Throwing a pure Exception is useless. Since it is the nature of Exception
handling to code the reson into the Exception hierarchy. See my other reply
and the comment on moving the exceptions to the engine.

Best regards,
 Marcus

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to