krz/vox-populi
A Tumblr web client.
clone: git clone https://gitbay.org/krz/vox-populi.git
main: vendor/guzzlehttp/promises/src/AggregateException.php · raw
1<?php
2namespace GuzzleHttp\Promise;
3
4/**
5 * Exception thrown when too many errors occur in the some() or any() methods.
6 */
7class AggregateException extends RejectionException
8{
9 public function __construct($msg, array $reasons)
10 {
11 parent::__construct(
12 $reasons,
13 sprintf('%s; %d rejected promises', $msg, count($reasons))
14 );
15 }
16}