Skip to content

Commit 366ba2b

Browse files
committed
PWA-3124::Resolved Runtime error
1 parent 1ecf13f commit 366ba2b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Model/PageType.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
namespace Magento\UpwardConnector\Model;
1010

11+
use Magento\Framework\Exception\RuntimeException;
1112
use Magento\Store\Model\StoreManagerInterface;
1213
use Magento\UrlRewrite\Model\UrlFinderInterface;
1314
use Magento\UrlRewrite\Service\V1\Data\UrlRewrite;
@@ -110,7 +111,7 @@ public function getContext(): ?Context
110111
public function resolvePageInfo(): ?array
111112
{
112113
if (!$this->getContext()) {
113-
throw new \RuntimeException('UPWARD Context not set');
114+
throw new RuntimeException('UPWARD Context not set');
114115
}
115116

116117
$storeId = (int) $this->storeManager->getStore()->getId();
@@ -144,7 +145,7 @@ public function resolvePageInfo(): ?array
144145
}
145146

146147
if (empty($resultArray['id'])) {
147-
throw new \RuntimeException(
148+
throw new RuntimeException(
148149
__('No such entity found with matching URL key: %url', ['url' => $url])
149150
);
150151
}

0 commit comments

Comments
 (0)