2013-11-19 12:55:50 +00:00
|
|
|
<?php
|
2013-11-19 13:08:16 +00:00
|
|
|
|
2013-11-19 12:55:50 +00:00
|
|
|
class HTMLFormFieldRequiredOptionsException extends MWException {
|
|
|
|
|
public function __construct( HTMLFormField $field, array $missing ) {
|
2013-11-19 13:08:16 +00:00
|
|
|
parent::__construct( sprintf( "Form type `%s` expected the following parameters to be set: %s",
|
|
|
|
|
get_class( $field ),
|
|
|
|
|
implode( ', ', $missing ) ) );
|
2013-11-19 12:55:50 +00:00
|
|
|
}
|
2013-11-19 13:08:16 +00:00
|
|
|
}
|