Skip to content

Commit a5d01de

Browse files
author
Paliarush, Alexander(apaliarush)
committed
Merge pull request #247 from magento-api/MAGETWO-35879-CurrencySymbol-FetchRates-Exception
[API] MAGETWO-35879: Changed to use LocalizedException in Currency Symbol FetchRates
2 parents cc6ec2b + 038dce9 commit a5d01de

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/CurrencySymbol/Controller/Adminhtml/System/Currency

1 file changed

+1
-1
lines changed

app/code/Magento/CurrencySymbol/Controller/Adminhtml/System/Currency/FetchRates.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function execute()
2222
$service = $this->getRequest()->getParam('rate_services');
2323
$this->_getSession()->setCurrencyRateService($service);
2424
if (!$service) {
25-
throw new \Exception(__('Please specify a correct Import Service.'));
25+
throw new \Magento\Framework\Exception\LocalizedException(__('Please specify a correct Import Service.'));
2626
}
2727
try {
2828
/** @var \Magento\Directory\Model\Currency\Import\ImportInterface $importModel */

0 commit comments

Comments
 (0)