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