Exception\NoSuchOptionException (Component\OptionsResolver)

Symfony\Component\OptionsResolver\Exception\NoSuchOptionException

class NoSuchOptionException extends OutOfBoundsException implements ExceptionInterface

Thrown when trying to read an option that has no value set.

When accessing optional options from within a lazy option or normalizer you should first check whether the optional option is set. You can do this with isset($options['optional']). In contrast to the {@link UndefinedOptionsException}, this is a runtime exception that can occur when evaluating lazy options.

© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/OptionsResolver/Exception/NoSuchOptionException.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部