[TYPO3-core] RFC #7357: Use exceptions to detect missing user function

Martin Kutschker martin.kutschker-n0spam at no5pam-blackbox.net
Sun Feb 3 21:44:44 CET 2008


Ingo Renner schrieb:
> Martin Kutschker wrote:
> 
> Hi Masi,
> 
>> According to php.net [1] the second parameter is a custom code. 
>> Probably to be used in extension classes.
> 
> so using it as error code - which is obvious - is not wrong, is it? We 
> also used that paradigm for the other new exceptions and 5.0 is using 
> this scheme too.

Using it as an error code is fine. I was confused because you wanted it 
to use it as a timestamp.

> Maybe we can find the time until final release to create a exception 
> handler which makes a nice error message like when the Db can't be 
> reached or the like. Another possibility would be to check if we can use 
> some of the 5.0 exception handler code with stack trace...

Maybe.

But the point of my path was that you can catch an error if the function 
call could not be made. Using a default handler somewhat thwarts the idea.

Masi


More information about the TYPO3-team-core mailing list