source: vendor/guzzlehttp/promises/src/AggregateException.php

Last change on this file was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 7 days ago

Upload project files

  • Property mode set to 100644
File size: 413 bytes
Line 
1<?php
2
3declare(strict_types=1);
4
5namespace GuzzleHttp\Promise;
6
7/**
8 * Exception thrown when too many errors occur in the some() or any() methods.
9 */
10class AggregateException extends RejectionException
11{
12 public function __construct(string $msg, array $reasons)
13 {
14 parent::__construct(
15 $reasons,
16 sprintf('%s; %d rejected promises', $msg, count($reasons))
17 );
18 }
19}
Note: See TracBrowser for help on using the repository browser.