[FEATURE] Add possibility to catch exception during rendering 23/31123/18
authorHelmut Hummel <helmut.hummel@typo3.org>
Wed, 25 Jun 2014 00:17:56 +0000 (02:17 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Wed, 29 Oct 2014 18:35:36 +0000 (19:35 +0100)
commite1ef2c6355e113591039b2d0ccdeb4f46072f078
tree4a09360f631bbf0d4b7c8ace37ae9f5c4aec4e64
parent62cff46f97b1749884860db74e3cf88c3179ebde
[FEATURE] Add possibility to catch exception during rendering

Currently exceptions throw when rendering single
content objects bubble up to the default exception
handler and break the complete frontend.

This change adds the possibility to register an exception handler
for a content object which can render an appropriate
message instead if wanted (e.g. in production context).

Releases: master
Resolves: #47919
Change-Id: I9e3697401432b043e164fa84340739a525f80264
Reviewed-on: http://review.typo3.org/31123
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/core/Documentation/Changelog/master/Feature-47919-CatchContentRenderingExceptions.rst [new file with mode: 0644]
typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php
typo3/sysext/frontend/Classes/ContentObject/Exception/ContentRenderingException.php [new file with mode: 0644]
typo3/sysext/frontend/Classes/ContentObject/Exception/ExceptionHandlerInterface.php [new file with mode: 0644]
typo3/sysext/frontend/Classes/ContentObject/Exception/ProductionExceptionHandler.php [new file with mode: 0644]
typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php
typo3/sysext/frontend/Tests/Unit/ContentObject/Fixtures/GeneralUtilityFixture.php [new file with mode: 0644]