Skip to content

Commit 8b582af

Browse files
committed
Client should always throw a simple Exception
1 parent 029b733 commit 8b582af

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/PsrHttpClient.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ interface PsrHttpClient
2020
*
2121
* @return ResponseInterface
2222
*
23-
* @throws \InvalidArgumentException
24-
* @throws Exception\HttpClientException
23+
* @throws Exception
2524
*/
2625
public function sendRequest(RequestInterface $request, array $options = []);
2726

@@ -33,8 +32,7 @@ public function sendRequest(RequestInterface $request, array $options = []);
3332
*
3433
* @return ResponseInterface[]
3534
*
36-
* @throws \InvalidArgumentException
37-
* @throws Exception\MultiHttpClientException
35+
* @throws Exception
3836
*/
3937
public function sendRequests(array $requests, array $options = []);
4038
}

0 commit comments

Comments
 (0)