/** * Generates an exception giving information about the client which performed * the request and the unreachable location. * * @param string $client * @param string $location */ public function __construct($client, $location) { $this->client = $client; $this->location = $location; $clientClass = get_class($client); parent::__construct("{$clientClass} has been unable to retrieve a response for the resource at {$location}"); }
public function __construct($message, BindingResultInterface $result) { $this->result = $result; parent::__construct($message); }