👁 查看:AggregateException.php
路径:/home/boguraj1/.trash/vendor.1/guzzlehttp/promises/src/AggregateException.php
大小:413 B · 修改:2026-06-02 05:23:42 · 权限:0644 · 可写
<?php
declare(strict_types=1);
namespace GuzzleHttp\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))
);
}
}