[TYPO3-core] RFC #12093: Improve the error and exception handling
Rupert Germann
rupi at gmx.li
Sun Oct 11 21:12:20 CEST 2009
hi,
to test the errorhandling I wrote a little extension called "tx_error"
which is attached to this post.
and one thing worth to mention: In the current trunk there's no error
handler registered by default. To start testing add these line to your
localconf.php:
$TYPO3_CONF_VARS['SYS']['errorHandler'] = 't3lib_error_ErrorHandler';
greets
rupert
Rupert Germann schrieb:
> Hi,
>
> this is a SVN patch request.
>
> Type: Improvement / completing existing features
>
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=12093
>
> Branches: Trunk
>
> Problem:
> The new error and exception handling in TYPO3 is way too unflexible.
> - Errors are "converted" to exceptions. This is not very useful because
> every php warning will be turned into an exception and will stop the
> script execution.
> - Displayed errors break the backend layout and make forms unusable
> - Errors and exceptions are only displayed, but there's no build-in
> possibility to write errors and exception to a log.
>
> Solution(s):
> - introduce a new parameter for errors which should be handled by the
> error handler. The already existing parameter "exceptionalErrors" is
> still used, but only for that errors which should throw exceptions.
> - Display the errors as flashmessages in the BE and as TsLog messages in
> FE (in the adminpanel)
> - implement logging of errors and exceptions to the different logging
> systems TYPO3
>
> For a detailed description of all changes and improvements have a look
> at the Documentation:
> http://wiki.typo3.org/index.php/File:Error_and_exception_handling.odt
>
>
> greets
> rupert
>
More information about the TYPO3-team-core
mailing list