[FOLLOWUP][TASK] Add meaningful exceptions to new locking API 83/38683/9
authorMathias Brodala <mbrodala@pagemachine.de>
Tue, 14 Apr 2015 07:57:41 +0000 (09:57 +0200)
committerJigal van Hemert <jigal.van.hemert@typo3.org>
Mon, 20 Apr 2015 21:17:04 +0000 (23:17 +0200)
commitf51c1996679752b1b7fd3c7d54aa99f76405031f
tree37415c8a51a092f2eea1b23280fb981b568d7af7
parent9ead9427f0ef7846d2f0c6235469188b138a0458
[FOLLOWUP][TASK] Add meaningful exceptions to new locking API

This adds dedicated exceptions to the new locking API which
vastly simplifies usage workflows.

Since the new API was not yet released, this is a non-breaking
change.

Resolves: #66411
Related: #47712
Releases: master
Change-Id: Iae44eaa121562469b64222f5837f7a48e6d9fc14
Reviewed-on: http://review.typo3.org/38683
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
Reviewed-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
Tested-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
12 files changed:
typo3/sysext/core/Classes/Core/ClassLoader.php
typo3/sysext/core/Classes/Locking/Exception.php [new file with mode: 0644]
typo3/sysext/core/Classes/Locking/Exception/LockAcquireException.php [new file with mode: 0644]
typo3/sysext/core/Classes/Locking/Exception/LockAcquireWouldBlockException.php [new file with mode: 0644]
typo3/sysext/core/Classes/Locking/Exception/LockCreateException.php [new file with mode: 0644]
typo3/sysext/core/Classes/Locking/FileLockStrategy.php
typo3/sysext/core/Classes/Locking/LockFactory.php
typo3/sysext/core/Classes/Locking/LockingStrategyInterface.php
typo3/sysext/core/Classes/Locking/SemaphoreLockStrategy.php
typo3/sysext/core/Classes/Locking/SimpleLockStrategy.php
typo3/sysext/core/Documentation/Changelog/master/Feature-47712-NewLockingAPI.rst
typo3/sysext/core/Tests/Unit/Locking/LockFactoryTest.php