Skip to content

Commit

Permalink
Merge pull request #247 from magento-api/MAGETWO-35879-CurrencySymbol…
Browse files Browse the repository at this point in the history
…-FetchRates-Exception

[API] MAGETWO-35879: Changed to use LocalizedException in Currency Symbol FetchRates
  • Loading branch information
Paliarush, Alexander(apaliarush) committed Apr 22, 2015
2 parents cc6ec2b + 038dce9 commit a5d01de
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 a5d01de

Please sign in to comment.