You are here

public function ParseException::__construct in Translation template extractor 6.3

Same name and namespace in other branches
  1. 7.3 vendor/Symfony/Component/Yaml/Exception/ParseException.php \Symfony\Component\Yaml\Exception\ParseException::__construct()
  2. 7.2 vendor/Symfony/Component/Yaml/Exception/ParseException.php \Symfony\Component\Yaml\Exception\ParseException::__construct()

Constructor.

Parameters

string $message The error message:

integer $parsedLine The line where the error occurred:

integer $snippet The snippet of code near the problem:

string $parsedFile The file name where the error occurred:

Exception $previous The previous exception:

File

vendor/Symfony/Component/Yaml/Exception/ParseException.php, line 37

Class

ParseException
Exception class thrown when an error occurs during parsing.

Namespace

Symfony\Component\Yaml\Exception

Code

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);
}