Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ParseException.php

function ParseException::__construct

Parameters

string $rawMessage 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:

File

vendor/symfony/yaml/Exception/ParseException.php, line 27

Class

ParseException
Exception class thrown when an error occurs during parsing.

Namespace

Symfony\Component\Yaml\Exception

Code

public function __construct(string $rawMessage, int $parsedLine = -1, ?string $snippet = null, ?string $parsedFile = null, ?\Throwable $previous = null) {
    $this->updateRepr();
    parent::__construct($this->message, 0, $previous);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal