Methods |
public
|
__construct(
string $message,
int $parsedLine = -1,
string|null $snippet = null,
string|null $parsedFile = null,
Exception|null $previous = null,
)
Parameters
$message |
The error message
|
$parsedLine |
The line where the error occurred
|
$snippet |
The snippet of code near the problem
|
$parsedFile |
The file name where the error occurred
|
$previous |
The previous exception
|
Overrides
|
#
|
public
|
getSnippet(): string
Gets the snippet of code near the error.
Gets the snippet of code near the error.
Returns
|
#
|
public
|
setSnippet(string $snippet)
Sets the snippet of code near the error.
Sets the snippet of code near the error.
Parameters
$snippet |
The code snippet
|
|
#
|
public
|
getParsedFile(): string
Gets the filename where the error occurred.
Gets the filename where the error occurred.
This method returns null if a string is parsed.
Returns
|
#
|
public
|
setParsedFile(string $parsedFile)
Sets the filename where the error occurred.
Sets the filename where the error occurred.
Parameters
|
#
|
public
|
getParsedLine(): int
Gets the line where the error occurred.
Gets the line where the error occurred.
Returns
|
#
|
public
|
setParsedLine(int $parsedLine)
Sets the line where the error occurred.
Sets the line where the error occurred.
Parameters
$parsedLine |
The file line
|
|
#
|