vendor/sylius/sylius/src/Sylius/Component/Channel/Context/ChannelNotFoundException.php line 26

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of the Sylius package.
  4.  *
  5.  * (c) Paweł Jędrzejewski
  6.  *
  7.  * For the full copyright and license information, please view the LICENSE
  8.  * file that was distributed with this source code.
  9.  */
  10. declare(strict_types=1);
  11. namespace Sylius\Component\Channel\Context;
  12. class ChannelNotFoundException extends \RuntimeException
  13. {
  14.     /**
  15.      * {@inheritdoc}
  16.      */
  17.     public function __construct($messageOrPreviousException null, ?\Throwable $previousException null)
  18.     {
  19.         $message 'Channel could not be found! Tip: You can use the Web Debug Toolbar to switch between channels in development.';
  20.         if ($messageOrPreviousException instanceof \Throwable) {
  21.             @trigger_error('Passing previous exception as the first argument is deprecated since 1.2 and will be prohibited since 2.0.', \E_USER_DEPRECATED);
  22.             $previousException $messageOrPreviousException;
  23.         }
  24.         if (is_string($messageOrPreviousException)) {
  25.             $message $messageOrPreviousException;
  26.         }
  27.         parent::__construct($message0$previousException);
  28.     }
  29. }