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\Output\Exception;
13 use InvalidArgumentException;
16 * Represents an exception thrown because requested formatter is not found.
18 * @author Konstantin Kudryashov <ever.zet@gmail.com>
20 class FormatterNotFoundException extends InvalidArgumentException implements OutputException
28 * Initializes exception.
30 * @param string $message
33 public function __construct($message, $name)
35 parent::__construct($message);
39 * Returns formatter name.
43 public function getName()