final class DiscoveryFailedException extends \Exception implements Exception
13
{
14
/**
15
* @var \Exception[]
16
*/
17
private $exceptions;
18
19
/**
20
*
21
* @param string $message
22
* @param \Exception[] $exceptions
23
*/
24
6
public function __construct($message, array $exceptions = [])
25
{
26
6
$this->exceptions = $exceptions;
27
28
6
parent::__construct($message);
29
6
}
30
31
/**
32
* @param \Exception[] $exceptions
33
*/
34
6
public static function create($exceptions)
35
{
36
6
$message = 'Could not find resource using any discovery strategy. Find more information at http://docs.php-http.org/en/latest/discovery.html#common-errors';