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

Breadcrumb

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

function AggregateException::__construct

Overrides RejectionException::__construct

File

vendor/guzzlehttp/promises/src/AggregateException.php, line 12

Class

AggregateException
Exception thrown when too many errors occur in the some() or any() methods.

Namespace

GuzzleHttp\Promise

Code

public function __construct(string $msg, array $reasons) {
    parent::__construct($reasons, sprintf('%s; %d rejected promises', $msg, count($reasons)));
}

API Navigation

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