StoreIsInactiveException.php 690 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Store\Model;
  7. use Magento\Framework\Exception\LocalizedException;
  8. use Magento\Framework\Phrase;
  9. /**
  10. * @api
  11. * @since 100.0.2
  12. */
  13. class StoreIsInactiveException extends LocalizedException
  14. {
  15. /**
  16. * @param \Magento\Framework\Phrase $phrase
  17. * @param \Exception $cause
  18. * @param int $code
  19. */
  20. public function __construct(Phrase $phrase = null, \Exception $cause = null, $code = 0)
  21. {
  22. if ($phrase === null) {
  23. $phrase = new Phrase('Store is inactive');
  24. }
  25. parent::__construct($phrase, $cause, $code);
  26. }
  27. }