12266213d0
* translation system and unit tests * Translations everywhere Dont use translation merge It is not available with PHP builtin gettext, so it would have lead to inconsistency.
23 lines
479 B
PHP
23 lines
479 B
PHP
<?php
|
|
|
|
|
|
namespace Shaarli\Config\Exception;
|
|
|
|
/**
|
|
* Exception used if a mandatory field is missing in given configuration.
|
|
*/
|
|
class MissingFieldConfigException extends \Exception
|
|
{
|
|
public $field;
|
|
|
|
/**
|
|
* Construct exception.
|
|
*
|
|
* @param string $field field name missing.
|
|
*/
|
|
public function __construct($field)
|
|
{
|
|
$this->field = $field;
|
|
$this->message = sprintf(t('Configuration value is required for %s'), $this->field);
|
|
}
|
|
}
|