aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/config/exception/MissingFieldConfigException.php
blob: 6346c6a9ebbc60e6826753855c32cf5d8e680e02 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?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 = 'Configuration value is required for '. $this->field;
    }
}