-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
Use friendly exception #386
base: master
Are you sure you want to change the base?
Conversation
np25071984
commented
Jan 12, 2025
Q | A |
---|---|
Is bugfix? | ❌ |
New feature? | ✔️ |
Breaks BC? | ❌ |
Fixed issues | #324 |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #386 +/- ##
===========================================
Coverage 100.00% 100.00%
- Complexity 165 167 +2
===========================================
Files 11 11
Lines 480 486 +6
===========================================
+ Hits 480 486 +6 ☔ View full report in Codecov by Sentry. |
src/BuildingException.php
Outdated
public function getSolution(): ?string | ||
{ | ||
return <<<SOLUTION | ||
See (https://github.com/yiisoft/di)[https://github.com/yiisoft/di] for more documentation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's think about what could cause it:
- Class wasn't found.
- Config wasn't valid.
- What else?
I'd provide a list of things to try, such as:
- Ensure that either a service with ID "x" is defined or such class exists and is autoloadable.
- Ensure that configuration for service with ID "x" is correct.
Docs are not suggesting on how to fix errors.
Co-authored-by: Alexander Makarov <[email protected]>