BrowserError.php in Zircon Profile 8.0
File
vendor/jcalderonzumba/gastonjs/src/Exception/BrowserError.php
View source
<?php
namespace Zumba\GastonJS\Exception;
class BrowserError extends ClientError {
public function __construct($response) {
parent::__construct($response);
$this->message = $this
->message();
}
public function getName() {
return $this->response["error"]["name"];
}
public function javascriptError() {
return new JSErrorItem($this->response["error"]["args"][0], $this->response["error"]["args"][1]);
}
public function message() {
return "There was an error inside the PhantomJS portion of GastonJS.\nThis is probably a bug, so please report it:\n" . $this
->javascriptError();
}
}
Classes
Name |
Description |
BrowserError |
Class BrowserError
@package Zumba\GastonJS\Exception |