You are here

public function AggregateException::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/guzzlehttp/promises/src/AggregateException.php \GuzzleHttp\Promise\AggregateException::__construct()

Parameters

mixed $reason Rejection reason.:

string $description Optional description:

Overrides RejectionException::__construct

File

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

Class

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

Namespace

GuzzleHttp\Promise

Code

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