diff --git a/src/HttpAsyncClient.php b/src/HttpAsyncClient.php index f426979..592fd49 100644 --- a/src/HttpAsyncClient.php +++ b/src/HttpAsyncClient.php @@ -15,9 +15,13 @@ interface HttpAsyncClient /** * Sends a PSR-7 request in an asynchronous way. * + * Exceptions related to processing the request are available from the returned Promise. + * * @param RequestInterface $request * * @return Promise + * + * @throws \Exception If processing the request is impossible (eg. bad configuration). */ public function sendAsyncRequest(RequestInterface $request); } diff --git a/src/HttpClient.php b/src/HttpClient.php index fa66c2c..0e51749 100644 --- a/src/HttpClient.php +++ b/src/HttpClient.php @@ -21,7 +21,8 @@ interface HttpClient * * @return ResponseInterface * - * @throws Exception + * @throws \Http\Client\Exception If an error happens during processing the request. + * @throws \Exception If processing the request is impossible (eg. bad configuration). */ public function sendRequest(RequestInterface $request); }