Skip to content
Snippets Groups Projects
Commit a5d01de2 authored by Paliarush, Alexander(apaliarush)'s avatar Paliarush, Alexander(apaliarush)
Browse files

Merge pull request #247 from magento-api/MAGETWO-35879-CurrencySymbol-FetchRates-Exception

[API] MAGETWO-35879: Changed to use LocalizedException in Currency Symbol FetchRates
parents cc6ec2ba 038dce9f
No related merge requests found
...@@ -22,7 +22,7 @@ class FetchRates extends \Magento\CurrencySymbol\Controller\Adminhtml\System\Cur ...@@ -22,7 +22,7 @@ class FetchRates extends \Magento\CurrencySymbol\Controller\Adminhtml\System\Cur
$service = $this->getRequest()->getParam('rate_services'); $service = $this->getRequest()->getParam('rate_services');
$this->_getSession()->setCurrencyRateService($service); $this->_getSession()->setCurrencyRateService($service);
if (!$service) { if (!$service) {
throw new \Exception(__('Please specify a correct Import Service.')); throw new \Magento\Framework\Exception\LocalizedException(__('Please specify a correct Import Service.'));
} }
try { try {
/** @var \Magento\Directory\Model\Currency\Import\ImportInterface $importModel */ /** @var \Magento\Directory\Model\Currency\Import\ImportInterface $importModel */
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment