-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
String based error handling in Mage_Sales_Model_Quote:addProductAdvanced etc. #55
Comments
@amenk From a developer point of view, exception usage does have advantages over returning an error text. However, implementation seems to be a pretty complex task, which requires modification of all places where At the same time, proposed code changes do not bring any value from the business stand point: it's not a new feature (even for a developer), not a bug fix, not a performance improvement. In order to get a progress on this ticket, it should be supplied with the pull request, which implements proposed changes along with unit/integration tests. |
@amenk |
I am a bit terrified that you close issues when there was no activity. This is still an issue and should be fixed. Please reopen. |
Hello Amenk, we have really huge backlog of issues that require deep system changes and that we know bring value to developers and business. As someone noted above, this one, while needed, is low priority and requiring many changes. If someone can contribute it - great - but there is very small chance our team will do that. We need to close tickets in github as it is easier to manage them. |
JS-330: Hide magnifier on video images
#55 : Need to update/change titles for ACL resource tree related to Login as Customer
The function addProductAdvanced and the underlying functions return strings if an error occurred.
One example from Mage_Catalog_Model_Product_Type_Abstract::_prepareProduct:
They should use exceptions instead - so a better handling of the different cases for an error can take place such as
As a result, parts like
can be omitted then because the exceptions are passed automatically.
The text was updated successfully, but these errors were encountered: