4 * This file is part of the Behat Testwork.
5 * (c) Konstantin Kudryashov <ever.zet@gmail.com>
7 * For the full copyright and license information, please view the LICENSE
8 * file that was distributed with this source code.
11 namespace Behat\Testwork\Suite\Exception;
14 * Represents an exception thrown when user tries to access non-existent suite parameter.
16 * @author Konstantin Kudryashov <ever.zet@gmail.com>
18 final class ParameterNotFoundException extends SuiteException
26 * Initializes exception.
28 * @param string $message
30 * @param string $parameter
32 public function __construct($message, $name, $parameter)
34 $this->parameter = $parameter;
36 parent::__construct($message, $name);
40 * Returns parameter that caused exception.
44 public function getParameter()
46 return $this->parameter;