googleanalytics
/
lib
/
analytics-admin
/
vendor
/
guzzlehttp
/
promises
/
src
/
AggregateException.php
AggregateException.php
3 years ago
CancellationException.php
3 years ago
Coroutine.php
3 years ago
Create.php
3 years ago
Each.php
3 years ago
EachPromise.php
3 years ago
FulfilledPromise.php
3 years ago
Is.php
3 years ago
Promise.php
3 years ago
PromiseInterface.php
3 years ago
PromisorInterface.php
3 years ago
RejectedPromise.php
3 years ago
RejectionException.php
3 years ago
TaskQueue.php
3 years ago
TaskQueueInterface.php
3 years ago
Utils.php
3 years ago
functions.php
3 years ago
functions_include.php
3 years ago
AggregateException.php
18 lines
| 1 | <?php |
| 2 | |
| 3 | namespace GuzzleHttp\Promise; |
| 4 | |
| 5 | /** |
| 6 | * Exception thrown when too many errors occur in the some() or any() methods. |
| 7 | */ |
| 8 | class AggregateException extends RejectionException |
| 9 | { |
| 10 | public function __construct($msg, array $reasons) |
| 11 | { |
| 12 | parent::__construct( |
| 13 | $reasons, |
| 14 | sprintf('%s; %d rejected promises', $msg, count($reasons)) |
| 15 | ); |
| 16 | } |
| 17 | } |
| 18 |