[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>
Showing
- typo3/sysext/core/Documentation/Changelog/master/Feature-47919-CatchContentRenderingExceptions.rst 48 additions, 0 deletions.../master/Feature-47919-CatchContentRenderingExceptions.rst
- typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php 143 additions, 32 deletions.../frontend/Classes/ContentObject/ContentObjectRenderer.php
- typo3/sysext/frontend/Classes/ContentObject/Exception/ContentRenderingException.php 21 additions, 0 deletions...ses/ContentObject/Exception/ContentRenderingException.php
- typo3/sysext/frontend/Classes/ContentObject/Exception/ExceptionHandlerInterface.php 35 additions, 0 deletions...ses/ContentObject/Exception/ExceptionHandlerInterface.php
- typo3/sysext/frontend/Classes/ContentObject/Exception/ProductionExceptionHandler.php 79 additions, 0 deletions...es/ContentObject/Exception/ProductionExceptionHandler.php
- typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php 282 additions, 118 deletions...nd/Tests/Unit/ContentObject/ContentObjectRendererTest.php
- typo3/sysext/frontend/Tests/Unit/ContentObject/Fixtures/GeneralUtilityFixture.php 31 additions, 0 deletions...sts/Unit/ContentObject/Fixtures/GeneralUtilityFixture.php
Please register or sign in to comment