TaskSystem/vendor/guzzlehttp/promises/src/AggregateException.php

20 lines
413 B
PHP
Raw Normal View History

2023-07-15 10:16:32 +08:00
<?php
2023-08-09 14:43:30 +08:00
declare(strict_types=1);
2023-07-15 10:16:32 +08:00
namespace GuzzleHttp\Promise;
/**
* Exception thrown when too many errors occur in the some() or any() methods.
*/
class AggregateException extends RejectionException
{
2023-08-09 14:43:30 +08:00
public function __construct(string $msg, array $reasons)
2023-07-15 10:16:32 +08:00
{
parent::__construct(
$reasons,
sprintf('%s; %d rejected promises', $msg, count($reasons))
);
}
}