You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/error-handling.md
+12-1Lines changed: 12 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,18 @@ in favour of giving you the error as a property.
16
16
|`ThrowOnDeserializationError`| Changes the default behavior when failed deserialization results in empty `Data` property of the response. Setting this property to `true` will tell RestSharp to throw when deserialization fails. |
17
17
|`ThrowOnAnyError`| Setting this property to `true` changes the default behavior and forces RestSharp to throw if any errors occurs when making a request or during deserialization. |
18
18
19
-
Those properties are available for the `RestClient` instance and will be used for all request made with that instance.
19
+
Those properties are available for the `RestClientOptions` and will be used for all request made with the client instance.
20
+
21
+
For example, you can configure the client to throw an exception if any error occurs when making a request, or when a request returns a non-successful HTTP status code:
0 commit comments