Mercurial > hg > isophonics-drupal-site
comparison vendor/guzzlehttp/promises/src/AggregateException.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4c8ae668cc8c |
---|---|
1 <?php | |
2 namespace GuzzleHttp\Promise; | |
3 | |
4 /** | |
5 * Exception thrown when too many errors occur in the some() or any() methods. | |
6 */ | |
7 class AggregateException extends RejectionException | |
8 { | |
9 public function __construct($msg, array $reasons) | |
10 { | |
11 parent::__construct( | |
12 $reasons, | |
13 sprintf('%s; %d rejected promises', $msg, count($reasons)) | |
14 ); | |
15 } | |
16 } |