update v1.0.7.9 R.C.
This is a Release Candidate. We are still testing.
This commit is contained in:
16
vendor/guzzlehttp/promises/src/AggregateException.php
vendored
Normal file
16
vendor/guzzlehttp/promises/src/AggregateException.php
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
namespace GuzzleHttp\Promise;
|
||||
|
||||
/**
|
||||
* Exception thrown when too many errors occur in the some() or any() methods.
|
||||
*/
|
||||
class AggregateException extends RejectionException
|
||||
{
|
||||
public function __construct($msg, array $reasons)
|
||||
{
|
||||
parent::__construct(
|
||||
$reasons,
|
||||
sprintf('%s; %d rejected promises', $msg, count($reasons))
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user