Class ParseException
Parse exception.
Thrown while parsing source codes.
- Exception
- RuntimeException
- TokenReflection\Exception\BaseException
- TokenReflection\Exception\StreamException
- TokenReflection\Exception\ParseException
public
|
#
__construct(
Constructor. |
public
array|null
|
|
public
string|null
|
#
getTokenName( )
Returns the name of the token where the problem was detected or NULL if the token stream was empty or an end was reached. |
public
integer
|
|
public
integer|null
|
|
public
string|null
|
|
public
|
|
public
string
|
getFileName(),
getStream()
|
__toString(),
getOutput()
|
getCode(),
getFile(),
getLine(),
getMessage(),
getPrevious(),
getTrace(),
getTraceAsString()
|
integer |
UNEXPECTED_TOKEN
|
1101 |
#
An unexpected token was encountered. |
integer |
LOGICAL_ERROR
|
1102 |
#
A logical error was encountered. |
integer |
INVALID_PARENT
|
1103 |
#
An invalid reflection parent was provided. |
integer |
SOURCE_LINES_AROUND
|
5 |
#
Minimal number of source code lines around the token. |
NOT_READABLE,
READ_BEYOND_EOS,
SERIALIZATION_ERROR
|
ALREADY_EXISTS,
DOES_NOT_EXIST,
INVALID_ARGUMENT,
PHP_EXT_MISSING,
UNSUPPORTED
|
$code,
$file,
$line,
$message
|