You are here

public function BrowserError::javascriptError in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/jcalderonzumba/gastonjs/src/Exception/BrowserError.php \Zumba\GastonJS\Exception\BrowserError::javascriptError()

Return value

JSErrorItem

1 call to BrowserError::javascriptError()
BrowserError::message in vendor/jcalderonzumba/gastonjs/src/Exception/BrowserError.php
Returns error message TODO: check how to proper implement if we have exceptions

File

vendor/jcalderonzumba/gastonjs/src/Exception/BrowserError.php, line 31

Class

BrowserError
Class BrowserError @package Zumba\GastonJS\Exception

Namespace

Zumba\GastonJS\Exception

Code

public function javascriptError() {

  //TODO: this need to be check, i don't know yet what comes in response
  return new JSErrorItem($this->response["error"]["args"][0], $this->response["error"]["args"][1]);
}