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

Breadcrumb

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

function Error::__construct

Same name in this branch
  1. 11.1.x vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Error.php \PhpParser\Node\Expr\Error::__construct()
  2. 11.1.x vendor/twig/twig/src/Error/Error.php \Twig\Error\Error::__construct()

Creates an Exception signifying a parse error.

Parameters

string $message Error message:

array<string, mixed> $attributes Attributes of node/token where error occurred:

File

vendor/nikic/php-parser/lib/PhpParser/Error.php, line 16

Class

Error

Namespace

PhpParser

Code

public function __construct(string $message, array $attributes = []) {
    $this->rawMessage = $message;
    $this->attributes = $attributes;
    $this->updateMessage();
}

API Navigation

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