3 namespace MediaWiki\HTMLForm
;
5 use InvalidArgumentException
;
11 class HTMLFormFieldRequiredOptionsException
extends InvalidArgumentException
{
16 * @param HTMLFormField $field
17 * @param array $missing
19 public function __construct( HTMLFormField
$field, array $missing ) {
20 parent
::__construct( sprintf( "Form type `%s` expected the following parameters to be set: %s",
22 implode( ', ', $missing ) ) );
26 /** @deprecated class alias since 1.42 */
27 class_alias( HTMLFormFieldRequiredOptionsException
::class, 'HTMLFormFieldRequiredOptionsException' );