Add stability annotations for HTML classes. Bug: T247862 Change-Id: I4dad7b98213ceceb8c04b24e5d52e6fecadb3538
20 lines
439 B
PHP
20 lines
439 B
PHP
<?php
|
|
|
|
/**
|
|
* @newable
|
|
* @stable to extend
|
|
*/
|
|
class HTMLFormFieldRequiredOptionsException extends MWException {
|
|
|
|
/**
|
|
* @stable to call
|
|
*
|
|
* @param HTMLFormField $field
|
|
* @param array $missing
|
|
*/
|
|
public function __construct( HTMLFormField $field, array $missing ) {
|
|
parent::__construct( sprintf( "Form type `%s` expected the following parameters to be set: %s",
|
|
get_class( $field ),
|
|
implode( ', ', $missing ) ) );
|
|
}
|
|
}
|