Skip to content

Commit 7d88545

Browse files
ybenhssaienjaviereguiluz
authored andcommitted
toArray method throw exception too
1 parent 5717ed7 commit 7d88545

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

http_client.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,7 @@ Handling Exceptions
896896

897897
When the HTTP status code of the response is in the 300-599 range (i.e. 3xx,
898898
4xx or 5xx) your code is expected to handle it. If you don't do that, the
899-
``getHeaders()`` and ``getContent()`` methods throw an appropriate exception, all of
899+
``getHeaders()``, ``getContent()`` and ``toArray()`` methods throw an appropriate exception, all of
900900
which implement the :class:`Symfony\\Contracts\\HttpClient\\Exception\\HttpExceptionInterface`::
901901

902902
// the response of this request will be a 403 HTTP error

0 commit comments

Comments
 (0)