3 namespace Shaarli\Config\Exception
;
6 * Exception used if a mandatory field is missing in given configuration.
8 class MissingFieldConfigException
extends \Exception
13 * Construct exception.
15 * @param string $field field name missing.
17 public function __construct($field)
19 $this->field
= $field;
20 $this->message
= sprintf(t('Configuration value is required for %s'), $this->field
);