getValue(), $this->_getInstalledCurrencies())) { throw new \Magento\Framework\Exception\LocalizedException( __('Sorry, we haven\'t installed the default display currency you selected.') ); } if (!in_array($this->getValue(), $this->_getAllowedCurrencies())) { throw new \Magento\Framework\Exception\LocalizedException( __('Sorry, the default display currency you selected is not available in allowed currencies.') ); } return parent::afterSave(); } }