# wordpress-seo/28.1/vendor_prefixed/guzzlehttp/promises/src/AggregateException.php

Yoast SEO – Advanced SEO with real-time guidance and built-in AI, version 28.1. 16 lines.

- Page: https://pluginprobe.com/plugins/wordpress-seo/28.1/code/vendor_prefixed/guzzlehttp/promises/src/AggregateException.php
- Raw: https://pluginprobe.com/plugins/wordpress-seo/28.1/raw/vendor_prefixed/guzzlehttp/promises/src/AggregateException.php
- Modified: 2023-09-19T09:07:18+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/wordpress-seo/28.1/code/vendor_prefixed/guzzlehttp/promises/src/AggregateException.php#L10-L20`.

```php
<?php

declare (strict_types=1);
namespace YoastSEO_Vendor\GuzzleHttp\Promise;

/**
 * Exception thrown when too many errors occur in the some() or any() methods.
 */
class AggregateException extends \YoastSEO_Vendor\GuzzleHttp\Promise\RejectionException
{
    public function __construct(string $msg, array $reasons)
    {
        parent::__construct($reasons, \sprintf('%s; %d rejected promises', $msg, \count($reasons)));
    }
}

```
