wiki.techinc.nl/includes/htmlform/HTMLFormFieldRequiredOptionsException.php
Nikki Nikkhoui 6b0e9eafe1 HTML Classes stability annotations
Add stability annotations for HTML classes.

Bug: T247862
Change-Id: I4dad7b98213ceceb8c04b24e5d52e6fecadb3538
2020-07-13 14:54:28 +02:00

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 ) ) );
}
}