public function ParseException::__construct in Loft Data Grids 7.2
Same name and namespace in other branches
- 6.2 vendor/symfony/yaml/Symfony/Component/Yaml/Exception/ParseException.php \Symfony\Component\Yaml\Exception\ParseException::__construct()
Parameters
string $message The error message:
int $parsedLine The line where the error occurred:
string|null $snippet The snippet of code near the problem:
string|null $parsedFile The file name where the error occurred:
\Exception|null $previous The previous exception:
File
- vendor/
symfony/ yaml/ Exception/ ParseException.php, line 33
Class
- ParseException
- Exception class thrown when an error occurs during parsing.
Namespace
Symfony\Component\Yaml\ExceptionCode
public function __construct($message, $parsedLine = -1, $snippet = null, $parsedFile = null, \Exception $previous = null) {
$this->parsedFile = $parsedFile;
$this->parsedLine = $parsedLine;
$this->snippet = $snippet;
$this->rawMessage = $message;
$this
->updateRepr();
parent::__construct($this->message, 0, $previous);
}