Security update for permissions_by_term
[yaffs-website] / vendor / behat / behat / src / Behat / Testwork / Output / Exception / FormatterNotFoundException.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\Output\Exception;
12
13 use InvalidArgumentException;
14
15 /**
16  * Represents an exception thrown because requested formatter is not found.
17  *
18  * @author Konstantin Kudryashov <ever.zet@gmail.com>
19  */
20 class FormatterNotFoundException extends InvalidArgumentException implements OutputException
21 {
22     /**
23      * @var string
24      */
25     private $name;
26
27     /**
28      * Initializes exception.
29      *
30      * @param string $message
31      * @param string $name
32      */
33     public function __construct($message, $name)
34     {
35         parent::__construct($message);
36     }
37
38     /**
39      * Returns formatter name.
40      *
41      * @return string
42      */
43     public function getName()
44     {
45         return $this->name;
46     }
47 }