wiki.techinc.nl/includes/htmlform/HTMLFormFieldRequiredOptionsException.php
Daimona Eaytoy caef81d37a Replace deprecated MWException
Bug: T328220
Change-Id: Ic45438d9e6bbf127f1415add81ab902044765840
2024-01-16 21:04:33 +01:00

20 lines
452 B
PHP

<?php
/**
* @newable
* @stable to extend
*/
class HTMLFormFieldRequiredOptionsException extends InvalidArgumentException {
/**
* @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 ) ) );
}
}