Skip to content

[9.x] Throw deadlock exception - #42129

Merged
taylorotwell merged 1 commit into
laravel:9.xfrom
imanghafoori1:deadlock_exception
Apr 25, 2022
Merged

[9.x] Throw deadlock exception#42129
taylorotwell merged 1 commit into
laravel:9.xfrom
imanghafoori1:deadlock_exception

Conversation

@imanghafoori1

Copy link
Copy Markdown
Contributor

Here Laravel checks and makes sure that the exception is due to a deadlock but eventually rethrows the generic PDOexception, then the developer must manually redetect it again as a deadlock in the application layer.
So it is more convenient to have a dedicated meaningful exception for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants