Documentation

NoSuchOptionException extends OutOfBoundsException
in package
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 , this is a runtime exception that can occur when evaluating lazy options.

Tags
author

Tobias Schultze http://tobion.de

Table of Contents

Interfaces

ExceptionInterface
Marker interface for all exceptions thrown by the OptionsResolver component.

        
On this page
  • Table Of Contents

Search results