Skip to content

Commit

Permalink
MAGETWO-35879: Changed to use LocalizedException in Currency Symbol F…
Browse files Browse the repository at this point in the history
…etchRates
  • Loading branch information
Ji Lu authored and arkadiych committed Apr 22, 2015
1 parent cc6ec2b commit 038dce9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function execute()
$service = $this->getRequest()->getParam('rate_services');
$this->_getSession()->setCurrencyRateService($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 {
/** @var \Magento\Directory\Model\Currency\Import\ImportInterface $importModel */
Expand Down

0 comments on commit 038dce9

Please sign in to comment.