W3cubDocs

/Laravel 5.8

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.8/Illuminate/Database/DetectsDeadlocks.html