public function ElementException::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/behat/mink/src/Exception/ElementException.php \Behat\Mink\Exception\ElementException::__construct()
Initialises exception.
Parameters
Element $element optional message:
\Exception $exception exception:
File
- vendor/
behat/ mink/ src/ Exception/ ElementException.php, line 34
Class
- ElementException
- A standard way for elements to re-throw exceptions.
Namespace
Behat\Mink\ExceptionCode
public function __construct(Element $element, \Exception $exception) {
$this->element = $element;
parent::__construct(sprintf("Exception thrown by %s\n%s", $element
->getXpath(), $exception
->getMessage()));
}