Skip to content

Commit 817009c

Browse files
committed
minor #15904 [HttpClient] Clarify what error handling is for http-client (Seldaek)
This PR was merged into the 4.4 branch. Discussion ---------- [HttpClient] Clarify what error handling is for http-client Commits ------- c4fb582 Clarify what error handling is for http-client
2 parents 389182f + c4fb582 commit 817009c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

http_client.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -965,8 +965,9 @@ responses in an array::
965965
This behavior provided at destruction-time is part of the fail-safe design of the
966966
component. No errors will be unnoticed: if you don't write the code to handle
967967
errors, exceptions will notify you when needed. On the other hand, if you write
968-
the error-handling code, you will opt-out from these fallback mechanisms as the
969-
destructor won't have anything remaining to do.
968+
the error-handling code (by calling ``$response->getStatusCode()``), you will
969+
opt-out from these fallback mechanisms as the destructor won't have anything
970+
remaining to do.
970971

971972
There are three types of exceptions:
972973

0 commit comments

Comments
 (0)