[TYPO3-v4] Exceptions and autoloader

Steffen Gebert steffen at steffen-gebert.de
Sun Feb 6 17:10:19 CET 2011


> 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?))

Kind regards
Steffen

-- 
Steffen Gebert
TYPO3 Core Team Member

Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/


More information about the TYPO3-project-v4 mailing list