[TYPO3-dev] use exceptions instead of die()?

Martin Kutschker martin.kutschker-n0spam at no5pam-blackbox.net
Mon Feb 4 00:19:24 CET 2008


Steffen Kamper schrieb:
> "Martin Kutschker" <martin.kutschker-n0spam at no5pam-blackbox.net> schrieb im 
> Newsbeitrag news:mailman.1.1202074638.6844.typo3-dev at lists.netfielders.de...
>> Hi!
>>
>> There are a few places where TYPO3 die()'s. That's pretty ugly. How about 
>> throwing exceptions and using a default exception handler to catch them. 
>> For starters it could simply output the error message, but we could add 
>> some layout etc to it.
>>
>> Masi
> 
> Hi,
> 
> i followed discussion in core list and a general +1 for using exceptions (as 
> they are still in, see ModuleMenu).

But, as you may have noticed, the devil is in the details. What 
exception to use? Do we need our own stack, etc.

Masi




More information about the TYPO3-dev mailing list