Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[9.x] Throw LostDbConnectionException #42102

Merged
merged 2 commits into from
Apr 22, 2022

Conversation

imanghafoori1
Copy link
Contributor

Throwing a specific exception in case of a lost db connection allows framework users to have a global catcher and report the exception separately from all other LogicExceptions.

  • I think this is fully backward compatible since the new exception is a subclass of the LogicException. (if not wrong)

@taylorotwell taylorotwell merged commit 6caa45f into laravel:9.x Apr 22, 2022
@imanghafoori1 imanghafoori1 deleted the lost_connection branch April 22, 2022 18:38
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