[TYPO3-v4] Exceptions and autoloader

Steffen Kamper info at sk-typo3.de
Sun Feb 6 17:32:01 CET 2011


Hi,

Am 06.02.2011 17:10, schrieb Steffen Gebert:
>> throw new tx_em_ConnectionException(get_class($this) . ': ' . $message,
>> $code);
>>
>> The class is in ext_autoload, but i guess that "new class" doesn't ask
>> autoloader.
>
> Maybe because of the ext_autoload.php is (IMHO) wrong?
> 'tx_em_connection_exception' => $emClassesPath .
> 'exception/class.tx_em_connection_exception.php',
>
> Correct key would be tx_em_connection_exception (and I think the correct
> class name according to the naming scheme would be again sth.
> different.. (tx_em_exception_ConnectionException?))
>

ah - good see! Seems i get bkind for obvious things after viewing this 
code for so long time :)

You are right, that the definition in autoload was wrong, also the name 
of the files.

i corrected that now in rev 4078 and look if the problem still remains.
Thanks!

vg Steffen


More information about the TYPO3-project-v4 mailing list