@@ -73,17 +73,18 @@ use Psr\Http\Message\RequestInterface;
73
73
use Psr\Http\Client\Exception;
74
74
75
75
/**
76
- * Exception for when a request failed, providing access to the failed request .
76
+ * Exception for when a request failed.
77
77
*
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)
80
81
*/
81
82
interface RequestException extends Exception
82
83
{
83
84
/**
84
85
* Returns the request.
85
86
*
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()
87
88
*
88
89
* @return RequestInterface
89
90
*/
@@ -104,14 +105,14 @@ use Psr\Http\Client\Exception;
104
105
*
105
106
* There is no response object as this exception is thrown when no response has been received.
106
107
*
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.
108
109
*/
109
110
interface NetworkException extends Exception
110
111
{
111
112
/**
112
113
* Returns the request.
113
114
*
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()
115
116
*
116
117
* @return RequestInterface
117
118
*/
@@ -138,7 +139,7 @@ interface HttpException extends Exception
138
139
/**
139
140
* Returns the request.
140
141
*
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()
142
143
*
143
144
* @return RequestInterface
144
145
*/
0 commit comments