final class DiscoveryFailedException extends \Exception implements Exception
13
{
14
/**
15
* @var \Exception[]
16
*/
17
private $exceptions;
18
19
/**
20
* @param string $message
21
* @param \Exception[] $exceptions
22
*/
23
6
public function __construct($message, array $exceptions = [])
24
{
25
6
$this->exceptions = $exceptions;
26
27
6
parent::__construct($message);
28
6
}
29
30
/**
31
* @param \Exception[] $exceptions
32
*/
33
6
public static function create($exceptions)
34
{
35
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';