You are here

public function ElementException::__toString in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/behat/mink/src/Exception/ElementException.php \Behat\Mink\Exception\ElementException::__toString()

Override default toString so we don't send a full backtrace in verbose mode.

Return value

string

File

vendor/behat/mink/src/Exception/ElementException.php, line 46

Class

ElementException
A standard way for elements to re-throw exceptions.

Namespace

Behat\Mink\Exception

Code

public function __toString() {
  return $this
    ->getMessage();
}