ParseError
class ParseError extends CompileError (View source)
ParseError is thrown when an error occurs while parsing PHP code, such as when {eval()} is called.
Properties
protected | $message | The error message |
from Error |
protected | $code | The error code |
from Error |
protected | $file | The filename where the error happened |
from Error |
protected | $line | The line where the error happened |
from Error |
Methods
__construct(string $message = "", int $code = 0, null|Throwable $previous = null)
Construct the error object.
from
Error
Details
in
Error at line 431
__construct(string $message = "", int $code = 0, null|Throwable $previous = null)
Construct the error object.
in
Error at line 444
final string
getMessage()
Gets the message
in
Error at line 457
final int
getCode()
Since: 7.0
Gets the exception code
in
Error at line 465
final string
getFile()
Since: 7.0
Gets the file in which the exception occurred
in
Error at line 473
final int
getLine()
Since: 7.0
Gets the line on which the object was instantiated
in
Error at line 484
final array
getTrace()
Since: 7.0
Gets the stack trace
in
Error at line 492
final string
getTraceAsString()
Since: 7.0
Gets the stack trace as a string
in
Error at line 500
final null|Throwable
getPrevious()
Since: 7.0
Returns the previous Throwable
in
Error at line 508
string
__toString()
Since: 7.0
Gets a string representation of the thrown object
in
Error at line 528
void
__wakeup()
No description