23 public function __construct($message, array $exceptions = [])
25 $this->exceptions = $exceptions;
27 parent::__construct($message);
33 public static function create($exceptions)
35 $message =
'Could not find resource using any discovery strategy. Find more information at http://docs.php-http.org/en/latest/discovery.html#common-errors';
36 foreach ($exceptions as $e) {
37 $message .=
"\n - ".$e->getMessage();
41 return new self($message, $exceptions);
49 return $this->exceptions;