MediaWiki master
HTMLFormFieldRequiredOptionsException.php
Go to the documentation of this file.
1<?php
2
3namespace MediaWiki\HTMLForm;
4
5use InvalidArgumentException;
6
11class HTMLFormFieldRequiredOptionsException extends InvalidArgumentException {
12
19 public function __construct( HTMLFormField $field, array $missing ) {
20 parent::__construct( sprintf( "Form type `%s` expected the following parameters to be set: %s",
21 get_class( $field ),
22 implode( ', ', $missing ) ) );
23 }
24}
25
27class_alias( HTMLFormFieldRequiredOptionsException::class, 'HTMLFormFieldRequiredOptionsException' );
The parent class to generate form fields.