[BUGFIX] Let all toplevel exceptions extend the core exception 51/53651/3
authorMathias Brodala <mbrodala@pagemachine.de>
Mon, 7 Aug 2017 10:50:16 +0000 (12:50 +0200)
committerSusanne Moog <susanne.moog@typo3.org>
Fri, 11 Aug 2017 08:40:40 +0000 (10:40 +0200)
commit929c02c7fc6b4d0740f823e5a3a876d01fb9a081
tree5f2a068b0dc541af5c61c6a62e21cf4190aee901
parent97debdc138b527bfc0c12e802f93ae551af42163
[BUGFIX] Let all toplevel exceptions extend the core exception

This is a small step to unify exception handling in TYPO3 by
ensuring no internal and 3rd party code is forced to catch the
toplevel PHP exception.

This change e.g. actually allows the FormPagePreviewRenderer to
handle form loading errors.

Resolves: #82052
Releases: master, 8.7
Change-Id: I5cb0b8f2c56a6bbbecc34d87474d6d8b3ad2015c
Reviewed-on: https://review.typo3.org/53651
Reviewed-by: Wolfgang Klinger <wolfgang@wazum.com>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Tested-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Reviewed-by: Joerg Boesche <typo3@joergboesche.de>
Tested-by: Joerg Boesche <typo3@joergboesche.de>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
15 files changed:
typo3/sysext/backend/Classes/Exception.php
typo3/sysext/beuser/Classes/Exception.php
typo3/sysext/documentation/Classes/Exception.php [new file with mode: 0644]
typo3/sysext/documentation/Classes/Exception/Document.php
typo3/sysext/documentation/Classes/Exception/XmlParser.php
typo3/sysext/extbase/Classes/Exception.php
typo3/sysext/extensionmanager/Classes/Exception.php [new file with mode: 0644]
typo3/sysext/extensionmanager/Classes/Exception/ExtensionManagerException.php
typo3/sysext/form/Classes/Exception.php
typo3/sysext/frontend/Classes/Exception.php
typo3/sysext/install/Classes/Exception.php
typo3/sysext/lang/Classes/Exception.php [new file with mode: 0644]
typo3/sysext/lang/Classes/Exception/Language.php
typo3/sysext/lang/Classes/Exception/Ter.php
typo3/sysext/lang/Classes/Exception/XmlParser.php