[TYPO3-project-4-3] (SPL) Exceptions
Martin Kutschker
masi-no at spam-typo3.org
Fri Nov 7 19:31:56 CET 2008
Ingo Renner schrieb:
> Martin Kutschker wrote:
>
> Hi Masi,
>
>> The fact that they are not offically documented makes me wonder if we
>> should use them.
>
> it's on php.net, so it's offcial - to me at least ;)
SPL yes (functions, classes), SPL exceptions no.
>> Another question is for me, how many exeptions do we need? The new
>> caching framework adds 6 alone.
>
> This is because of the backporting and I rather wouldn't change that for
> "compatibility" reasons.
Ok.
>> So can
>> someone please explain to me, why it makes sense to create a new
>> exception class for every possible failure?
>
> Of course it doesn't make sense for every failure, but there might be
> some where it makes sense. I think that really depends on each
> individuel case and might also need individuel discusion...
Just thought there might be some paradigms or whatever around that
governs the use of exceptions.
> Most of the time the SPL exceptions will do I'd say.
Fine.
Masi
More information about the TYPO3-project-4-3
mailing list