Skip to content

Commit 0859e74

Browse files
committed
Expand LockConflictedException docs
The goal of this is to reduce the chance of bad assumptions about lock acquisition behaviour. Fixes #40969
1 parent e95b36d commit 0859e74

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Exception/LockConflictedException.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,13 @@
1111

1212
namespace Symfony\Component\Lock\Exception;
1313

14+
use Symfony\Component\Lock\Lock;
15+
1416
/**
1517
* LockConflictedException is thrown when a lock is acquired by someone else.
1618
*
19+
* In non-blocking mode it is caught by {@see Lock::acquire()} and {@see Lock::acquireRead()}.
20+
*
1721
* @author Jérémy Derussé <jeremy@derusse.com>
1822
*/
1923
class LockConflictedException extends \RuntimeException implements ExceptionInterface

0 commit comments

Comments
 (0)