In probably Mambo times, we introduced a custom error handling code since PHP4 did not support exceptions at that time. As you noticed, we don't have 2008 anymore and PHP5+ does support exceptions, however we never removed our custom error handling. At least we moved most of it to the LegacyErrorHandlingTrait with Joomla 4. This issue is here to track the progress of converting everything to exceptions now. For this we introduced shouldUseExceptions() and setUseExceptions() in the trait in Joomla 6.0, so that you can switch between the old behavior and the new exceptions. The PRs linked below introduce this switch and a series of new exceptions. In a future major version we will then remove these switches again and only leave the exceptions as the finished solution.
| Labels |
Added:
No Code Attached Yet
|
||