File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
app/code/Magento/Catalog/Model/Product/Attribute/Backend/TierPrice Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -72,14 +72,15 @@ public function __construct(
72
72
* @return \Magento\Catalog\Api\Data\ProductInterface|object
73
73
* @throws \Magento\Framework\Exception\NoSuchEntityException
74
74
* @throws \Magento\Framework\Exception\LocalizedException
75
+ * @throws \Magento\Framework\Exception\RuntimeException
75
76
*/
76
77
public function execute ($ entity , $ arguments = [])
77
78
{
78
79
$ attribute = $ this ->attributeRepository ->get ('tier_price ' );
79
80
$ priceRows = $ entity ->getData ($ attribute ->getName ());
80
81
if (null !== $ priceRows ) {
81
82
if (!is_array ($ priceRows )) {
82
- throw new \Magento \Framework \Exception \LocalizedException (
83
+ throw new \Magento \Framework \Exception \RuntimeException (
83
84
__ ('Tier prices data should be array, but actually other type is received ' )
84
85
);
85
86
}
You can’t perform that action at this time.
0 commit comments