Security update for permissions_by_term
[yaffs-website] / vendor / behat / mink / src / Exception / UnsupportedDriverActionException.php
1 <?php
2
3 /*
4  * This file is part of the Mink package.
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\Mink\Exception;
12
13 use Behat\Mink\Driver\DriverInterface;
14
15 /**
16  * Exception thrown by drivers when they don't support the requested action.
17  *
18  * @author Konstantin Kudryashov <ever.zet@gmail.com>
19  */
20 class UnsupportedDriverActionException extends DriverException
21 {
22     /**
23      * Initializes exception.
24      *
25      * @param string          $template what is unsupported?
26      * @param DriverInterface $driver   driver instance
27      * @param \Exception      $previous previous exception
28      */
29     public function __construct($template, DriverInterface $driver, \Exception $previous = null)
30     {
31         $message = sprintf($template, get_class($driver));
32
33         parent::__construct($message, 0, $previous);
34     }
35 }