| 1 |
<?php |
| 2 |
|
| 3 |
declare (strict_types=1); |
| 4 |
namespace Dudlewebs\WPMCS\s3\GuzzleHttp\Promise; |
| 5 |
|
| 6 |
/** |
| 7 |
* Exception thrown when too many errors occur in the some() or any() methods. |
| 8 |
*/ |
| 9 |
class AggregateException extends RejectionException |
| 10 |
{ |
| 11 |
public function __construct(string $msg, array $reasons) |
| 12 |
{ |
| 13 |
parent::__construct($reasons, \sprintf('%s; %d rejected promises', $msg, \count($reasons))); |
| 14 |
} |
| 15 |
} |
| 16 |
|