SyntaxErrorException

class SyntaxErrorException extends ParseException

ParseException is thrown when a CSS selector syntax is not valid.

This component is a port of the Python cssselect library, which is copyright Ian Bicking, see https://github.com/SimonSapin/cssselect.

Methods

static SyntaxErrorException unexpectedToken(string $expectedValue, Token $foundToken)
static SyntaxErrorException pseudoElementFound(string $pseudoElement, string $unexpectedLocation)
static SyntaxErrorException unclosedString(int $position)
static SyntaxErrorException nestedNot()
static SyntaxErrorException stringAsFunctionArgument()

Details

static SyntaxErrorException unexpectedToken(string $expectedValue, Token $foundToken)

Parameters

string $expectedValue
Token $foundToken

Return Value

SyntaxErrorException

static SyntaxErrorException pseudoElementFound(string $pseudoElement, string $unexpectedLocation)

Parameters

string $pseudoElement
string $unexpectedLocation

Return Value

SyntaxErrorException

static SyntaxErrorException unclosedString(int $position)

Parameters

int $position

Return Value

SyntaxErrorException

static SyntaxErrorException nestedNot()

Return Value

SyntaxErrorException

static SyntaxErrorException stringAsFunctionArgument()

Return Value

SyntaxErrorException
doc_Symfony
2016-10-28 06:33:58
Comments
Leave a Comment

Please login to continue.