You are here

public function JavascriptError::javascriptErrors in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/jcalderonzumba/gastonjs/src/Exception/JavascriptError.php \Zumba\GastonJS\Exception\JavascriptError::javascriptErrors()

Get the javascript errors found during the use of the phantomjs

Return value

array

1 call to JavascriptError::javascriptErrors()
JavascriptError::message in vendor/jcalderonzumba/gastonjs/src/Exception/JavascriptError.php
Returns the javascript errors found

File

vendor/jcalderonzumba/gastonjs/src/Exception/JavascriptError.php, line 24

Class

JavascriptError
Class JavascriptError @package Zumba\GastonJS\Exception

Namespace

Zumba\GastonJS\Exception

Code

public function javascriptErrors() {
  $jsErrors = array();
  $errors = $this->response["error"]["args"][0];
  foreach ($errors as $error) {
    $jsErrors[] = new JSErrorItem($error["message"], $error["stack"]);
  }
  return $jsErrors;
}