Issue Bug Closed

#66797Can not use other classes for exception handling

Eike Starkmann 05/05/15, 11:45 updated 10/21/15, 11:19

Description

Hi,

i’m trying to use other classes for exception handling and i found this three settings:

$TYPO3_CONF_VARS['SYS']['errorHandler'] = '\Testen\Errbit\Error\ErrorHandler';
$TYPO3_CONF_VARS['SYS']['productionExceptionHandler'] = '\Testen\Errbit\Error\ProductionExceptionHandler';
$TYPO3_CONF_VARS['SYS']['debugExceptionHandler'] = '\Testen\Errbit\Error\DebugExceptionHandler';

I set them in the ext_localconf of my extension.
In backend the new classes are shown correctly under configuration, but when i produce an error the old classes are used.

Can this be a race condition, that the new configuration is is not loaded at that time?

When i set the new classes manually in LocalConfiguration.php everything works as expected.

Anyway i feel that extending the exception handling is not working like described here:
http://docs.typo3.org/typo3cms/CoreApiReference/ErrorAndExceptionHandling/Configuration/Extending/Index.html

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.