Skip to content

Commit

Permalink
Merge pull request #122 from mhauri/eliminate-zend-exception
Browse files Browse the repository at this point in the history
Eliminate usage of Zend_Exception from Magento 2 Open Source
  • Loading branch information
buskamuza authored Apr 11, 2018
2 parents b07b778 + a35e09e commit 4e0985a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,14 +182,14 @@ protected function compositeCollectFields(array $fixture)
* Retrieve connection to resource specified by $resourceName.
*
* @param string $resourceName
* @return \Exception|false|\Magento\Framework\DB\Adapter\AdapterInterface|\Zend_Exception
* @return \Exception|false|\Magento\Framework\DB\Adapter\AdapterInterface
*/
protected function getConnection($resourceName)
{
try {
$connection = $this->resource->getConnection($resourceName);
return $connection;
} catch (\Zend_Exception $e) {
} catch (\Exception $e) {
echo $e->getMessage() . PHP_EOL;
return $e;
}
Expand Down

0 comments on commit 4e0985a

Please sign in to comment.