Skip to content

[9.x] Throw LostDbConnectionException#42102

Merged
taylorotwell merged 2 commits into
laravel:9.xfrom
imanghafoori1:lost_connection
Apr 22, 2022
Merged

[9.x] Throw LostDbConnectionException#42102
taylorotwell merged 2 commits into
laravel:9.xfrom
imanghafoori1:lost_connection

Conversation

@imanghafoori1

Copy link
Copy Markdown
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