Security update for permissions_by_term
[yaffs-website] / vendor / behat / behat / src / Behat / Testwork / Suite / Exception / ParameterNotFoundException.php
1 <?php
2
3 /*
4  * This file is part of the Behat Testwork.
5  * (c) Konstantin Kudryashov <ever.zet@gmail.com>
6  *
7  * For the full copyright and license information, please view the LICENSE
8  * file that was distributed with this source code.
9  */
10
11 namespace Behat\Testwork\Suite\Exception;
12
13 /**
14  * Represents an exception thrown when user tries to access non-existent suite parameter.
15  *
16  * @author Konstantin Kudryashov <ever.zet@gmail.com>
17  */
18 final class ParameterNotFoundException extends SuiteException
19 {
20     /**
21      * @var string
22      */
23     private $parameter;
24
25     /**
26      * Initializes exception.
27      *
28      * @param string $message
29      * @param string $name
30      * @param string $parameter
31      */
32     public function __construct($message, $name, $parameter)
33     {
34         $this->parameter = $parameter;
35
36         parent::__construct($message, $name);
37     }
38
39     /**
40      * Returns parameter that caused exception.
41      *
42      * @return string
43      */
44     public function getParameter()
45     {
46         return $this->parameter;
47     }
48 }