User tests: Successful: Unsuccessful:
Pull Request resolves # .
This is another step in the process of converting from the old getErrors()/setError() to using exceptions instead. The code currently catches the exception and converts it to a call to setError(), then later code again reads the error and hands it over to the next error a layer up. At the end, we are reading the error and throw an exception. This PR simply cuts out the middle man and allows the original exception to be used directly. From my perspective, this should be backwards compatible and thus it should be possible to accept this in a minor release.
The setUseException() call can then again be removed in 7.0.
I did some further cleanup of the featured view of com_contact in this PR.
Trigger errors and see that they show up equally to before?
Please select:
Documentation link for guide.joomla.org:
No documentation changes for guide.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
| Status | New | ⇒ | Pending |
| Category | ⇒ | Administration com_banners com_categories com_fields com_finder com_menus com_redirect com_users Front End com_contact com_content com_newsfeeds com_tags |
Does it make sense to make a change like this to use a deprecated method? Maybe that method should be un-deprecated?
yes make sense, because in 7 or 8 you only have to remove this method call and don't have to find this lines what hannes did now.
I just remember Nils teaching that when we deprecate something we should only do so when we have a replacement and we should use the replacement immediately and that the deprecation notice was for others to see
yes that's true for example for the Factory::getDatabase() to Factory::getContainer()->get('db') stuff because the change is simply the wrong way to go, we should inject everything we need and "never" use a super global like the Factory to get such stuff.
this is another case because this is the final solution, we switch to Exceptions and this method is the preparation for this and will simply be removed and not replaced with a "proper" solution.
thanks for the explanation
| Labels |
Added:
PR-6.1-dev
|
||
Does it make sense to make a change like this to use a deprecated method? Maybe that method should be un-deprecated?