ConcurrencyErrorDetector.php 362 B

12345678910111213141516
  1. <?php
  2. namespace Illuminate\Contracts\Database;
  3. use Throwable;
  4. interface ConcurrencyErrorDetector
  5. {
  6. /**
  7. * Determine if the given exception was caused by a concurrency error such as a deadlock or serialization failure.
  8. *
  9. * @param \Throwable $e
  10. * @return bool
  11. */
  12. public function causedByConcurrencyError(Throwable $e): bool;
  13. }