[FOLLOWUP][BUGFIX] Catch exceptions for inaccessible storages
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Documentation / Changelog / master / Breaking-64714-CatchExceptionsForInaccessibleStorages.rst
1 =============================================================
2 Breaking: #64714 - Catch exceptions for inaccessible storages
3 =============================================================
4
5 Description
6 ===========
7
8 Changing \TYPO3\CMS\Core\Resource\Exception\ResourcePermissionsUnavailableException to extend from \TYPO3\CMS\Core\Resource\Exception instead of \RuntimeExtension
9
10
11 Impact
12 ======
13
14 If a call to \TYPO3\CMS\Core\Resource\Driver\LocalDriver->getPermissions() throws an exception and your extension catches \RuntimeExtension it breaks on permission read errors.
15
16
17 Migration
18 =========
19
20 To write a compatible extension you can do following in your catch block:
21
22 } catch(\RuntimeException $e) {
23 // Do exception handling
24 } catch(\TYPO3\CMS\Core\Resource\Exception\ResourcePermissionsUnavailableException $e) {
25 // Do same exception handling
26 }