Skip to content

Commit c26e28c

Browse files
committed
Modify docs
1 parent ac875b1 commit c26e28c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/get-help/faq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ code back and some content, but the typed `Data` property is empty.
5050

5151
In that case, you probably got deserialization issues. By default, RestSharp will just return an empty (`null`) result in the `Data` property.
5252
Deserialization errors can be also populated to the error response. To do that,
53-
set the `client.FailOnDeserialization` property to `true`.
53+
set the `client.FailOnDeserializationError` property to `true`.
5454

5555
It is also possible to force RestSharp to throw an exception.
5656

docs/usage/exceptions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ in favour of giving you the error as a property.
1212

1313
| Property | Behavior |
1414
| ------------- |-------------|
15-
| `FailOnDeserialization` | Changes the default behavior when failed deserialization results in a successful response with an empty `Data` property of the response. Setting this property to `true` will tell RestSharp to consider failed deserialization as an error and set the `ResponseStatus` to `Error` accordingly. |
16-
| `ThrowOnDeserialization` | 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. |
15+
| `FailOnDeserializationError` | Changes the default behavior when failed deserialization results in a successful response with an empty `Data` property of the response. Setting this property to `true` will tell RestSharp to consider failed deserialization as an error and set the `ResponseStatus` to `Error` accordingly. |
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. |
1717
| `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. |
1818

1919
Those properties are available for the `IRestClient` instance and will be used for all request made with that instance.

0 commit comments

Comments
 (0)