# depicter/trunk/modules/GuzzleHttp/Promise/AggregateException.php

Depicter — Popup &amp; Slider Builder, version trunk. 20 lines.

- Page: https://pluginprobe.com/plugins/depicter/trunk/code/modules/GuzzleHttp/Promise/AggregateException.php
- Raw: https://pluginprobe.com/plugins/depicter/trunk/raw/modules/GuzzleHttp/Promise/AggregateException.php
- Modified: 2024-03-02T11:03:48+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/depicter/trunk/code/modules/GuzzleHttp/Promise/AggregateException.php#L10-L20`.

```php
<?php

declare(strict_types=1);

namespace Depicter\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))
        );
    }
}

```
