Minor dependency updates
[yaffs-website] / vendor / jcalderonzumba / gastonjs / src / Exception / InvalidSelector.php
1 <?php
2
3 namespace Zumba\GastonJS\Exception;
4
5 /**
6  * Class InvalidSelector
7  * @package Zumba\GastonJS\Exception
8  */
9 class InvalidSelector extends ClientError {
10   /**
11    * Gets the method of selection
12    * @return string
13    */
14   public function getMethod() {
15     return $this->response["error"]["args"][0];
16   }
17
18   /**
19    * Gets the selector related to the method
20    * @return string
21    */
22   public function getSelector() {
23     return $this->response["error"]["args"][1];
24   }
25
26   /**
27    * @return string
28    */
29   public function message() {
30     return "The browser raised a syntax error while trying to evaluate" . $this->getMethod() . " selector " . $this->getSelector();
31   }
32 }