Skip to content

Commit 038dce9

Browse files
Ji Luarkadiych
Ji Lu
authored andcommitted
MAGETWO-35879: Changed to use LocalizedException in Currency Symbol FetchRates
1 parent cc6ec2b commit 038dce9

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

+1-1
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)