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

Breadcrumb

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

class JsonValidationException

@author Jordi Boggiano <j.boggiano@seld.be>

Hierarchy

  • class \Composer\Json\JsonValidationException extends \Exception

Expanded class hierarchy of JsonValidationException

6 files declare their use of JsonValidationException
Application.php in vendor/composer/composer/src/Composer/Console/Application.php
ConfigValidator.php in vendor/composer/composer/src/Composer/Util/ConfigValidator.php
DiagnoseCommand.php in vendor/composer/composer/src/Composer/Command/DiagnoseCommand.php
Factory.php in vendor/composer/composer/src/Composer/Factory.php
InitCommand.php in vendor/composer/composer/src/Composer/Command/InitCommand.php

... See full list

File

vendor/composer/composer/src/Composer/Json/JsonValidationException.php, line 20

Namespace

Composer\Json
View source
class JsonValidationException extends Exception {
    
    /**
     * @var string[]
     */
    protected $errors;
    
    /**
     * @param string[] $errors
     */
    public function __construct(string $message, array $errors = [], ?Exception $previous = null) {
        $this->errors = $errors;
        parent::__construct((string) $message, 0, $previous);
    }
    
    /**
     * @return string[]
     */
    public function getErrors() : array {
        return $this->errors;
    }

}

Members

Title Sort descending Modifiers Object type Summary
JsonValidationException::$errors protected property
JsonValidationException::getErrors public function
JsonValidationException::__construct public function

API Navigation

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