Skip to content

Commit c54bbf1

Browse files
committed
Fix exception descriptions
1 parent 916048d commit c54bbf1

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

src/Exception/HttpException.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
use Psr\Http\Message\ResponseInterface;
77

88
/**
9-
* Thrown when both a request and a response are available
9+
* Thrown when a response was received but has an error status code.
10+
*
11+
* This exception always provides the request and response objects.
1012
*
1113
* @author Márk Sági-Kazár <mark.sagikazar@gmail.com>
1214
*/

src/Exception/RequestException.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
use Psr\Http\Message\RequestInterface;
66

77
/**
8-
* Thrown when a request is available
8+
* Base exception for when a request failed.
9+
*
10+
* This can be because of network problems or the status code of the response.
911
*
1012
* @author Márk Sági-Kazár <mark.sagikazar@gmail.com>
1113
*/

src/Exception/TransferException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace Http\Client\Exception;
44

55
/**
6-
* Thrown when an error related to sending/receiving the request/response occurs
6+
* Base exception for all php-http exceptions.
77
*
88
* @author Márk Sági-Kazár <mark.sagikazar@gmail.com>
99
*/

0 commit comments

Comments
 (0)