laravel / 5.3.30 / api / 5.3 / illuminate / database / detectsdeadlocks.html /

DetectsDeadlocks

trait DetectsDeadlocks (View source)

Methods

bool causedByDeadlock(Exception $e)

Determine if the given exception was caused by a deadlock.

Details

protected bool causedByDeadlock(Exception $e)

Determine if the given exception was caused by a deadlock.

Parameters

Exception $e

Return Value

bool

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.3/Illuminate/Database/DetectsDeadlocks.html