NotImplementedException.php 897 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Polyfill\Intl\Icu\Exception;
  11. /**
  12. * Base exception class for not implemented behaviors of the intl extension in the Locale component.
  13. *
  14. * @author Eriksen Costa <eriksen.costa@infranology.com.br>
  15. */
  16. class NotImplementedException extends RuntimeException
  17. {
  18. public const INTL_INSTALL_MESSAGE = 'Please install the "intl" extension for full localization capabilities.';
  19. /**
  20. * @param string $message The exception message. A note to install the intl extension is appended to this string
  21. */
  22. public function __construct(string $message)
  23. {
  24. parent::__construct($message.' '.self::INTL_INSTALL_MESSAGE);
  25. }
  26. }