File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -15,9 +15,13 @@ interface HttpAsyncClient
1515 /**
1616 * Sends a PSR-7 request in an asynchronous way.
1717 *
18+ * Exceptions related to processing the request are available from the returned Promise.
19+ *
1820 * @param RequestInterface $request
1921 *
2022 * @return Promise
23+ *
24+ * @throws \Exception If processing the request is impossible (eg. bad configuration).
2125 */
2226 public function sendAsyncRequest (RequestInterface $ request );
2327}
Original file line number Diff line number Diff line change @@ -21,7 +21,8 @@ interface HttpClient
2121 *
2222 * @return ResponseInterface
2323 *
24- * @throws Exception
24+ * @throws \Http\Client\Exception If an error happens during processing the request.
25+ * @throws \Exception If processing the request is impossible (eg. bad configuration).
2526 */
2627 public function sendRequest (RequestInterface $ request );
2728}
You can’t perform that action at this time.
0 commit comments