Skip to content

Commit 9b3c517

Browse files
committed
rewording based on feedback
1 parent 671128a commit 9b3c517

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

docs/02_concepts/04_error_handling.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ When you use the Apify client, it automatically extracts all relevant data from
1616

1717
## Error subclasses
1818

19-
<ApiLink to="class/ApifyApiError">`ApifyApiError`</ApiLink> dispatches to a dedicated subclass based on the HTTP status code of the failed response, so you can branch on error kind without inspecting `status_code` or `type`:
19+
The Apify client provides dedicated error subclasses based on the HTTP status code of the failed response, so you can branch on error kind without inspecting `status_code` or `type`:
2020

2121
| Status | Subclass |
2222
|---|---|

docs/04_upgrading/upgrading_to_v3.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ If your code relied on the previous global timeout behavior, review the timeout
195195

196196
## Exception subclasses for API errors
197197

198-
<ApiLink to="class/ApifyApiError">`ApifyApiError`</ApiLink> now dispatches to a dedicated subclass based on the HTTP status code of the failed response. Instantiating `ApifyApiError` directly still works — it returns the most specific subclass for the status — so existing `except ApifyApiError` handlers are unaffected. See the [Error handling](/docs/concepts/error-handling#error-subclasses) concept page for the full status-to-subclass mapping.
198+
The Apify client now provides dedicated error subclasses based on the HTTP status code of the failed response. Instantiating <ApiLink to="class/ApifyApiError">`ApifyApiError`</ApiLink> directly still works — it returns the most specific subclass for the status — so existing `except ApifyApiError` handlers are unaffected. See the [Error handling](/docs/concepts/error-handling#error-subclasses) concept page for the full status-to-subclass mapping.
199199

200200
You can now branch on error kind without inspecting `status_code` or `type`:
201201

0 commit comments

Comments
 (0)