4 * This file is part of the Behat.
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\Behat\Definition\Exception;
13 use InvalidArgumentException;
16 * Represents an exception caused by an unsupported pattern type.
18 * @author Konstantin Kudryashov <ever.zet@gmail.com>
20 final class UnsupportedPatternTypeException extends InvalidArgumentException implements DefinitionException
28 * Initializes exception.
30 * @param string $message
33 public function __construct($message, $type)
37 parent::__construct($message);
41 * Returns pattern type that caused exception.
45 public function getType()