<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ declare(strict_types=1); namespace Magento\Store\Model\StoreSwitcher; use Magento\Framework\Exception\RuntimeException; use Magento\Framework\Phrase; /** * Exception thrown if store cannot be switched. */ class CannotSwitchStoreException extends RuntimeException { /** * @param \Exception|null $cause * @param Phrase|null $phrase * @param int $code */ public function __construct(\Exception $cause = null, Phrase $phrase = null, int $code = 0) { parent::__construct($phrase ?: __('The store cannot be switched.'), $cause, $code); } }