Sabberworm\CSS\Parsing\UnexpectedTokenException
Thrown if the CSS parsers encounters a token it did not expect
Synopsis
class UnexpectedTokenException
extends SourceException
{
- // members
- private $sExpected;
- private $sFound;
- private $sMatchType;
- // Inherited members from Exception
- protected $message;
- protected $code;
- protected $file;
- protected $line;
- // methods
- public void __construct()
- // Inherited methods from SourceException
- public void __construct()
- public void getLineNo()
- // Inherited methods from Exception
- public void __construct()
- public final string getMessage()
- public final Throwable getPrevious()
- public final mixed getCode()
- public final string getFile()
- public final int getLine()
- public final array getTrace()
- public final string getTraceAsString()
- public string __toString()
Hierarchy
Members
private
- $sExpected
- $sFound
- $sMatchType
protected
- $code
—
int
The exception code - $file
—
string
The filename where the exception was created - $line
—
int
The line where the exception was created - $message
—
string
The exception message
Methods
Inherited from Sabberworm\CSS\Parsing\SourceException
public
Inherited from Exception
public
- __toString() — String representation of the exception
- getCode() — Gets the Exception code
- getFile() — Gets the file in which the exception was created
- getLine() — Gets the line in which the exception was created
- getMessage() — Gets the Exception message
- getPrevious() — Returns previous Exception
- getTrace() — Gets the stack trace
- getTraceAsString() — Gets the stack trace as a string