AggregateException.php 379 B

12345678910111213141516
  1. <?php
  2. namespace GuzzleHttp\Promise;
  3. /**
  4. * Exception thrown when too many errors occur in the some() or any() methods.
  5. */
  6. class AggregateException extends RejectionException
  7. {
  8. public function __construct($msg, array $reasons)
  9. {
  10. parent::__construct(
  11. $reasons,
  12. sprintf('%s; %d rejected promises', $msg, count($reasons))
  13. );
  14. }
  15. }