# gmail-smtp/trunk/google-api-php-client/vendor/guzzlehttp/promises/src/AggregateException.php

Gmail SMTP, version trunk. 20 lines.

- Page: https://pluginprobe.com/plugins/gmail-smtp/trunk/code/google-api-php-client/vendor/guzzlehttp/promises/src/AggregateException.php
- Raw: https://pluginprobe.com/plugins/gmail-smtp/trunk/raw/google-api-php-client/vendor/guzzlehttp/promises/src/AggregateException.php
- Modified: 2026-07-04T08:00:06+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/gmail-smtp/trunk/code/google-api-php-client/vendor/guzzlehttp/promises/src/AggregateException.php#L10-L20`.

```php
<?php

declare(strict_types=1);

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

```
