minor #41107 [Lock] Expand LockConflictedException docs (NoelLH)

This PR was merged into the 4.4 branch.

Discussion
----------

[Lock] Expand `LockConflictedException` docs

The goal of this is to reduce the chance of bad assumptions about lock acquisition behaviour. Fixes #40969

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #40969
| License       | MIT
| Doc PR        | N/A

The goal of this tweak is to reduce the chance of bad assumptions about lock acquisition behaviour.

As per #40970 with suggested fixes, except now targeting the correct branch.

Commits
-------

2e4335fc70 Expand `LockConflictedException` docs
This commit is contained in:
Alexander M. Turek 2021-05-04 17:32:16 +02:00
commit b05f481ff4

View File

@ -11,9 +11,13 @@
namespace Symfony\Component\Lock\Exception;
use Symfony\Component\Lock\Lock;
/**
* LockConflictedException is thrown when a lock is acquired by someone else.
*
* In non-blocking mode it is caught by {@see Lock::acquire()} and {@see Lock::acquireRead()}.
*
* @author Jérémy Derussé <jeremy@derusse.com>
*/
class LockConflictedException extends \RuntimeException implements ExceptionInterface