NotImplementedException.php 906 B

1234567891011121314151617181920212223242526272829303132
  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\Component\Intl\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. const INTL_INSTALL_MESSAGE = 'Please install the "intl" extension for full localization capabilities.';
  19. /**
  20. * Constructor
  21. *
  22. * @param string $message The exception message. A note to install the intl extension is appended to this string
  23. */
  24. public function __construct($message)
  25. {
  26. parent::__construct($message.' '.self::INTL_INSTALL_MESSAGE);
  27. }
  28. }