Skip to content

Commit

Permalink
Qualifying Exception per MEQP feedback.
Browse files Browse the repository at this point in the history
  • Loading branch information
islandskater43 committed Aug 28, 2017
1 parent a9a1f8a commit 95ec2f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Core/Controller/Simplepath/Listener.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function execute()
$return = array('result' => 'error', 'message' => 'payload parameter not found.');
}

} catch (Exception $e) {
} catch (\Exception $e) {
$return = array('result' => 'error', 'message' => $e->getMessage());
}

Expand Down
4 changes: 2 additions & 2 deletions src/Core/Model/Config/SimplePath.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ public function decryptPayload($payloadJson, $autoEnable = true, $autoSave = tru
$response = $client->request();
$amazonPublickey = urldecode($response->getBody());

} catch (Exception $e) {
} catch (\Exception $e) {
throw new \Magento\Framework\Validator\Exception(__($e->getMessage()));
}

Expand Down Expand Up @@ -283,7 +283,7 @@ public function decryptPayload($payloadJson, $autoEnable = true, $autoSave = tru
throw new \Magento\Framework\Validator\Exception("Unable to verify signature for JSON payload.");
}

} catch (Exception $e) {
} catch (\Exception $e) {
$this->logger->critical($e);
$this->messageManager->addError(__($e->getMessage()));

Expand Down

0 comments on commit 95ec2f8

Please sign in to comment.