# authorizer/3.13.0/vendor/guzzlehttp/promises/src/AggregateException.php

Authorizer, version 3.13.0. 20 lines.

- Page: https://pluginprobe.com/plugins/authorizer/3.13.0/code/vendor/guzzlehttp/promises/src/AggregateException.php
- Raw: https://pluginprobe.com/plugins/authorizer/3.13.0/raw/vendor/guzzlehttp/promises/src/AggregateException.php
- Modified: 2024-03-06T20:45:00+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/authorizer/3.13.0/code/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))
        );
    }
}

```
