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

Breadcrumb

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

function Exception::__construct

Same name in this branch
  1. 11.1.x vendor/phpunit/phpunit/src/Framework/MockObject/Runtime/Stub/Exception.php \PHPUnit\Framework\MockObject\Stub\Exception::__construct()
  2. 11.1.x vendor/phpunit/phpunit/src/Framework/Exception/Exception.php \PHPUnit\Framework\Exception::__construct()
  3. 11.1.x vendor/phpunit/phpunit/src/Framework/Constraint/Exception/Exception.php \PHPUnit\Framework\Constraint\Exception::__construct()

Class constructor

Parameters

string $message Error message:

Position $position Error position:

Overrides Exception::__construct

1 method overrides Exception::__construct()
Exception::__construct in vendor/mck89/peast/lib/Peast/Syntax/Exception.php
Class constructor

File

vendor/mck89/peast/lib/Peast/Syntax/Exception.php, line 35

Class

Exception
Syntax exception class. Syntax errors in the source are thrown using this using this exception class.

Namespace

Peast\Syntax

Code

public function __construct($message, Position $position) {
    parent::__construct($message);
    $this->position = $position;
}
RSS feed
Powered by Drupal