You are here

private function CssParser::throwError in QueryPath 7.2

Same name and namespace in other branches
  1. 6 QueryPath/CssParser.php \CssParser::throwError()
  2. 7.3 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

CssParser

Code

private function throwError($expected, $got) {
  $filter = sprintf('Expected %s, got %s', CssToken::name($expected), CssToken::name($got));
  throw new CssParseException($filter);
}