4 * This file is part of the Mink package.
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\Mink\Exception;
13 use Behat\Mink\Driver\DriverInterface;
16 * Exception thrown by drivers when they don't support the requested action.
18 * @author Konstantin Kudryashov <ever.zet@gmail.com>
20 class UnsupportedDriverActionException extends DriverException
23 * Initializes exception.
25 * @param string $template what is unsupported?
26 * @param DriverInterface $driver driver instance
27 * @param \Exception $previous previous exception
29 public function __construct($template, DriverInterface $driver, \Exception $previous = null)
31 $message = sprintf($template, get_class($driver));
33 parent::__construct($message, 0, $previous);