Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-store
Model
StoreSwitcher
CannotSwitchStoreException.php
Go to the documentation of this file.
1
<?php
6
declare(strict_types=1);
7
8
namespace
Magento\Store\Model\StoreSwitcher
;
9
10
use
Magento\Framework\Exception\RuntimeException
;
11
use
Magento\Framework\Phrase
;
12
16
class
CannotSwitchStoreException
extends
RuntimeException
17
{
23
public
function
__construct
(\Exception $cause =
null
,
Phrase
$phrase
=
null
,
int
$code
= 0)
24
{
25
parent::__construct(
$phrase
?:
__
(
'The store cannot be switched.'
), $cause,
$code
);
26
}
27
}
Magento\Framework\Exception\LocalizedException\$phrase
$phrase
Definition:
LocalizedException.php:22
Magento\Store\Model\StoreSwitcher\CannotSwitchStoreException
Definition:
CannotSwitchStoreException.php:16
Magento\Store\Model\StoreSwitcher\CannotSwitchStoreException\__construct
__construct(\Exception $cause=null, Phrase $phrase=null, int $code=0)
Definition:
CannotSwitchStoreException.php:23
__
__()
Definition:
__.php:13
Magento\Framework\Exception\RuntimeException
Definition:
RuntimeException.php:11
Magento\Framework\Phrase
Definition:
Phrase.php:17
Magento\Framework\Phrase
Magento\Store\Model\StoreSwitcher
Definition:
CannotSwitchStoreException.php:8
$code
$code
Definition:
info.phtml:12