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\Context\Exception;
13 use InvalidArgumentException;
16 * Represents an exception when provided class exists, but is not an acceptable as a context.
18 * @author Konstantin Kudryashov <ever.zet@gmail.com>
20 final class WrongContextClassException extends InvalidArgumentException implements ContextException
28 * Initializes exception.
30 * @param integer $message
31 * @param string $class
33 public function __construct($message, $class)
35 $this->class = $class;
37 parent::__construct($message);
41 * Returns not found classname.
45 public function getClass()