Skip to content

Commit bc68c5e

Browse files
sagikazarmarkNyholm
authored andcommitted
Change wording (#11)
1 parent e16988c commit bc68c5e

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

proposed/http-client/http-client.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,17 +73,18 @@ use Psr\Http\Message\RequestInterface;
7373
use Psr\Http\Client\Exception;
7474

7575
/**
76-
* Exception for when a request failed, providing access to the failed request.
76+
* Exception for when a request failed.
7777
*
78-
* This could be due to an invalid request, example when you can seek in the request body stream
79-
* or due invalid request object.
78+
* Examples:
79+
* - Request is invalid (eg. method is missing)
80+
* - Runtime request errors (like the body stream is not seekable)
8081
*/
8182
interface RequestException extends Exception
8283
{
8384
/**
8485
* Returns the request.
8586
*
86-
* The request object MAY be the same as passed to HttpClient::sendRequest()
87+
* The request object MAY be a different object from the one passed to HttpClient::sendRequest()
8788
*
8889
* @return RequestInterface
8990
*/
@@ -104,14 +105,14 @@ use Psr\Http\Client\Exception;
104105
*
105106
* There is no response object as this exception is thrown when no response has been received.
106107
*
107-
* For example when the target host name can not be resolved or the connection failed.
108+
* Example: the target host name can not be resolved or the connection failed.
108109
*/
109110
interface NetworkException extends Exception
110111
{
111112
/**
112113
* Returns the request.
113114
*
114-
* The request object MAY be the same as passed to HttpClient::sendRequest()
115+
* The request object MAY be a different object from the one passed to HttpClient::sendRequest()
115116
*
116117
* @return RequestInterface
117118
*/
@@ -138,7 +139,7 @@ interface HttpException extends Exception
138139
/**
139140
* Returns the request.
140141
*
141-
* The request object MAY be the same as passed to HttpClient::sendRequest()
142+
* The request object MAY be a different object from the one passed to HttpClient::sendRequest()
142143
*
143144
* @return RequestInterface
144145
*/

0 commit comments

Comments
 (0)