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

Breadcrumb

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

class ParsingException

Hierarchy

  • class \Seld\JsonLint\ParsingException extends \Seld\JsonLint\Exception

Expanded class hierarchy of ParsingException

3 files declare their use of ParsingException
Application.php in vendor/composer/composer/src/Composer/Console/Application.php
JsonFile.php in vendor/composer/composer/src/Composer/Json/JsonFile.php
Locker.php in vendor/composer/composer/src/Composer/Package/Locker.php

File

vendor/seld/jsonlint/src/Seld/JsonLint/ParsingException.php, line 14

Namespace

Seld\JsonLint
View source
class ParsingException extends \Exception {
    
    /**
     * @var array{text?: string, token?: string|int, line?: int, loc?: array{first_line: int, first_column: int, last_line: int, last_column: int}, expected?: string[]}
     */
    protected $details;
    
    /**
     * @param string $message
     * @phpstan-param array{text?: string, token?: string|int, line?: int, loc?: array{first_line: int, first_column: int, last_line: int, last_column: int}, expected?: string[]} $details
     */
    public function __construct($message, $details = array()) {
        $this->details = $details;
        parent::__construct($message);
    }
    
    /**
     * @phpstan-return array{text?: string, token?: string|int, line?: int, loc?: array{first_line: int, first_column: int, last_line: int, last_column: int}, expected?: string[]}
     */
    public function getDetails() {
        return $this->details;
    }

}

Members

Title Sort descending Modifiers Object type Summary Overrides
ParsingException::$details protected property 1
ParsingException::getDetails public function @phpstan-return array{text?: string, token?: string|int, line?: int, loc?: array{first_line: int, first_column: int, last_line: int, last_column: int}, expected?: string[]} 1
ParsingException::__construct public function @phpstan-param array{text?: string, token?: string|int, line?: int, loc?: array{first_line: int, first_column: int, last_line: int, last_column: int}, expected?: string[]} $details 1

API Navigation

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