NoSuchOptionException.php 831 B

1234567891011121314151617181920212223242526
  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\OptionsResolver\Exception;
  11. /**
  12. * Thrown when trying to read an option that has no value set.
  13. *
  14. * When accessing optional options from within a lazy option or normalizer you should first
  15. * check whether the optional option is set. You can do this with `isset($options['optional'])`.
  16. * In contrast to the {@link UndefinedOptionsException}, this is a runtime exception that can
  17. * occur when evaluating lazy options.
  18. *
  19. * @author Tobias Schultze <http://tobion.de>
  20. */
  21. class NoSuchOptionException extends \OutOfBoundsException implements ExceptionInterface
  22. {
  23. }