Re: New SPL exceptions proposal
| From: | Hannes Magnusson | Date: | Wed, 12 Nov 2008 07:28:46 +0000 |
| Subject: | Re: New SPL exceptions proposal | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-41864@lists.php.net to get a copy of this message | ||
On Tue, Nov 11, 2008 at 23:00, Etienne Kneuss <colder@php.net> wrote:
> Hello David,
>
> On Tue, Nov 11, 2008 at 5:16 PM, David Grudl <david@grudl.com> wrote:
>> Hello *internals* and Marcus!
>>
>> What do you think about possibility to implement to PHP 5.3 several useful
>> default exceptions?
>>
>> (note that InvalidArgumentException, RuntimeException and LogicException
>> exists since PHP 5.1)
>>
>> /**
>> * The exception that is thrown when the value of an argument is
>> * outside the allowable range of values as defined by the invoked method.
>> */
>> class ArgumentOutOfRangeException extends InvalidArgumentException
>> {}
>
> Looks a bit redundant with OutOfRangeException
I see no point in any of them.
We already have like 15 exceptions.. There is absolutely no point in
any more, unless they'll have some superpowers (like ErrorException).
-Hannes