Skip to content

Commit 48a3d39

Browse files
committed
Add exception explanation, fixes #87
1 parent 7808717 commit 48a3d39

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/HttpAsyncClient.php

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ interface HttpAsyncClient
1818
* @param RequestInterface $request
1919
*
2020
* @return Promise
21+
*
22+
* @throws \Exception If processing the request is impossible (eg. bad configuration)
2123
*/
2224
public function sendAsyncRequest(RequestInterface $request);
2325
}

src/HttpClient.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ interface HttpClient
2121
*
2222
* @return ResponseInterface
2323
*
24-
* @throws Exception
24+
* @throws 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
}

0 commit comments

Comments
 (0)