Expand LockConflictedException docs

The goal of this is to reduce the chance of bad assumptions about lock acquisition behaviour. Fixes #40969
This commit is contained in:
Noel Light-Hilary 2021-05-04 13:06:07 +01:00
parent 88dcf52964
commit 2e4335fc70

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