3 namespace Drupal\Driver\Exception;
5 use Drupal\Driver\DriverInterface;
8 * Unsupported driver action.
10 class UnsupportedDriverActionException extends Exception {
13 * Initializes exception.
15 * @param string $template
16 * What is unsupported?
17 * @param DriverInterface $driver
21 * @param \Exception $previous
24 public function __construct($template, DriverInterface $driver, $code = 0, \Exception $previous = NULL) {
25 $message = sprintf($template, get_class($driver));
27 parent::__construct($message, $driver, $code, $previous);