AccessException.php
7 years ago
ExceptionInterface.php
7 years ago
InvalidArgumentException.php
7 years ago
InvalidOptionsException.php
7 years ago
MissingOptionsException.php
7 years ago
NoConfigurationException.php
6 years ago
NoSuchOptionException.php
7 years ago
OptionDefinitionException.php
7 years ago
UndefinedOptionsException.php
7 years ago
NoSuchOptionException.php
27 lines
| 1 | <?php |
| 2 | |
| 3 | /* |
| 4 | * This file is part of the Symfony package. |
| 5 | * |
| 6 | * (c) Fabien Potencier <fabien@symfony.com> |
| 7 | * |
| 8 | * For the full copyright and license information, please view the LICENSE |
| 9 | * file that was distributed with this source code. |
| 10 | */ |
| 11 | |
| 12 | namespace Symfony\Component\OptionsResolver\Exception; |
| 13 | |
| 14 | /** |
| 15 | * Thrown when trying to read an option that has no value set. |
| 16 | * |
| 17 | * When accessing optional options from within a lazy option or normalizer you should first |
| 18 | * check whether the optional option is set. You can do this with `isset($options['optional'])`. |
| 19 | * In contrast to the {@link UndefinedOptionsException}, this is a runtime exception that can |
| 20 | * occur when evaluating lazy options. |
| 21 | * |
| 22 | * @author Tobias Schultze <http://tobion.de> |
| 23 | */ |
| 24 | class NoSuchOptionException extends \OutOfBoundsException implements ExceptionInterface |
| 25 | { |
| 26 | } |
| 27 |