private function CssParser::throwError in QueryPath 6
Same name and namespace in other branches
- 7.3 QueryPath/CssParser.php \CssParser::throwError()
- 7.2 QueryPath/CssParser.php \CssParser::throwError()
2 calls to CssParser::throwError()
- CssParser::attribute in QueryPath/
CssParser.php - CssParser::elementName in QueryPath/
CssParser.php
File
- QueryPath/
CssParser.php, line 519
Class
Code
private function throwError($expected, $got) {
$filter = sprintf('Expected %s, got %s', CssToken::name($expected), CssToken::name($got));
throw new CssParseException($filter);
}