Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

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