public function JavascriptError::javascriptErrors in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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\ExceptionCode
public function javascriptErrors() {
$jsErrors = array();
$errors = $this->response["error"]["args"][0];
foreach ($errors as $error) {
$jsErrors[] = new JSErrorItem($error["message"], $error["stack"]);
}
return $jsErrors;
}