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/guzzlehttp/promises/src/AggregateException.php \GuzzleHttp\Promise\AggregateException

Hierarchy

  • class \Prophecy\Exception\Prediction\AggregateException extends \Prophecy\Exception\Prediction\RuntimeException implements \Prophecy\Exception\Prediction\PredictionException

Expanded class hierarchy of AggregateException

2 files declare their use of AggregateException
ObjectProphecy.php in vendor/phpspec/prophecy/src/Prophecy/Prophecy/ObjectProphecy.php
Prophet.php in vendor/phpspec/prophecy/src/Prophecy/Prophet.php

File

vendor/phpspec/prophecy/src/Prophecy/Exception/Prediction/AggregateException.php, line 16

Namespace

Prophecy\Exception\Prediction
View source
class AggregateException extends \RuntimeException implements PredictionException {
    
    /**
     * @var list<PredictionException>
     */
    private $exceptions = array();
    
    /**
     * @var ObjectProphecy<object>|null
     */
    private $objectProphecy;
    
    /**
     * @return void
     */
    public function append(PredictionException $exception) {
        $message = $exception->getMessage();
        $message = strtr($message, array(
            "\n" => "\n  ",
        )) . "\n";
        $message = empty($this->exceptions) ? $message : "\n" . $message;
        $this->message = rtrim($this->message . $message);
        $this->exceptions[] = $exception;
    }
    
    /**
     * @return list<PredictionException>
     */
    public function getExceptions() {
        return $this->exceptions;
    }
    
    /**
     * @param ObjectProphecy<object> $objectProphecy
     *
     * @return void
     */
    public function setObjectProphecy(ObjectProphecy $objectProphecy) {
        $this->objectProphecy = $objectProphecy;
    }
    
    /**
     * @return ObjectProphecy<object>|null
     */
    public function getObjectProphecy() {
        return $this->objectProphecy;
    }

}

Members

Title Sort descending Modifiers Object type Summary
AggregateException::$exceptions private property
AggregateException::$objectProphecy private property
AggregateException::append public function
AggregateException::getExceptions public function
AggregateException::getObjectProphecy public function
AggregateException::setObjectProphecy public function

API Navigation

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