Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. AggregateException.php

class AggregateException

Same name in this branch
  1. 11.1.x vendor/phpspec/prophecy/src/Prophecy/Exception/Prediction/AggregateException.php \Prophecy\Exception\Prediction\AggregateException

Exception thrown when too many errors occur in the some() or any() methods.

Hierarchy

  • class \GuzzleHttp\Promise\RejectionException extends \GuzzleHttp\Promise\RuntimeException
    • class \GuzzleHttp\Promise\AggregateException extends \GuzzleHttp\Promise\RejectionException

Expanded class hierarchy of AggregateException

File

vendor/guzzlehttp/promises/src/AggregateException.php, line 10

Namespace

GuzzleHttp\Promise
View source
class AggregateException extends RejectionException {
    public function __construct(string $msg, array $reasons) {
        parent::__construct($reasons, sprintf('%s; %d rejected promises', $msg, count($reasons)));
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title
AggregateException::__construct public function Overrides RejectionException::__construct
RejectionException::$reason private property @var mixed Rejection reason.
RejectionException::getReason public function Returns the rejection reason.

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal