This commit is contained in:
2025-10-02 16:07:12 +02:00
parent e01874a1e4
commit 796520fb0c
1796 changed files with 655105 additions and 16 deletions

View File

@@ -0,0 +1,19 @@
<?php
declare(strict_types=1);
namespace GuzzleHttp7\Promise;
/**
* Exception thrown when too many errors occur in the some() or any() methods.
*/
class AggregateException extends RejectionException
{
public function __construct(string $msg, array $reasons)
{
parent::__construct(
$reasons,
sprintf('%s; %d rejected promises', $msg, count($reasons))
);
}
}