Skip to content

Commit dfbf75b

Browse files
committed
Add exception explanation, fixes #87
Add missing trailing dot Add better explanation for workflow exceptions in Async Client Use FQCN to avoid confusion
1 parent 8fab29d commit dfbf75b

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/HttpAsyncClient.php

+4
Original file line numberDiff line numberDiff 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
}

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 \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
}

0 commit comments

Comments
 (0)