symfony / 2.7 / symfony / component / optionsresolver / exception / invalidoptionsexception.html

InvalidOptionsException

class InvalidOptionsException extends InvalidArgumentException

Thrown when the value of an option does not match its validation rules.

You should make sure a valid value is passed to the option.