3 namespace Zumba\GastonJS\Exception;
6 * Class InvalidSelector
7 * @package Zumba\GastonJS\Exception
9 class InvalidSelector extends ClientError {
11 * Gets the method of selection
14 public function getMethod() {
15 return $this->response["error"]["args"][0];
19 * Gets the selector related to the method
22 public function getSelector() {
23 return $this->response["error"]["args"][1];
29 public function message() {
30 return "The browser raised a syntax error while trying to evaluate" . $this->getMethod() . " selector " . $this->getSelector();