Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. UnsupportedDriverActionException.php

class UnsupportedDriverActionException

Exception thrown by drivers when they don't support the requested action.

@author Konstantin Kudryashov <ever.zet@gmail.com>

Hierarchy

  • class \Behat\Mink\Exception\Exception extends \Behat\Mink\Exception\Exception
    • class \Behat\Mink\Exception\Exception extends \Behat\Mink\Exception\Exception
      • class \Behat\Mink\Exception\DriverException extends \Behat\Mink\Exception\Exception
        • class \Behat\Mink\Exception\UnsupportedDriverActionException extends \Behat\Mink\Exception\DriverException

Expanded class hierarchy of UnsupportedDriverActionException

3 files declare their use of UnsupportedDriverActionException
BrowserKitDriver.php in vendor/behat/mink-browserkit-driver/src/BrowserKitDriver.php
CoreDriver.php in vendor/behat/mink/src/Driver/CoreDriver.php
DriverInterface.php in vendor/behat/mink/src/Driver/DriverInterface.php

File

vendor/behat/mink/src/Exception/UnsupportedDriverActionException.php, line 20

Namespace

Behat\Mink\Exception
View source
class UnsupportedDriverActionException extends DriverException {
    
    /**
     * Initializes exception.
     *
     * @param string          $template what is unsupported?
     * @param DriverInterface $driver   driver instance
     * @param \Throwable|null $previous previous exception
     */
    public function __construct(string $template, DriverInterface $driver, ?\Throwable $previous = null) {
        $message = sprintf($template, get_class($driver));
        parent::__construct($message, 0, $previous);
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title
UnsupportedDriverActionException::__construct public function Initializes exception. Overrides DriverException::__construct

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal