diff --git a/docs/get-help/faq.md b/docs/get-help/faq.md index b6ac2c7e9..68a58537d 100644 --- a/docs/get-help/faq.md +++ b/docs/get-help/faq.md @@ -50,7 +50,7 @@ code back and some content, but the typed `Data` property is empty. In that case, you probably got deserialization issues. By default, RestSharp will just return an empty (`null`) result in the `Data` property. Deserialization errors can be also populated to the error response. To do that, -set the `client.FailOnDeserialization` property to `true`. +set the `client.FailOnDeserializationError` property to `true`. It is also possible to force RestSharp to throw an exception. diff --git a/docs/usage/exceptions.md b/docs/usage/exceptions.md index b292d2de0..a86f815f5 100644 --- a/docs/usage/exceptions.md +++ b/docs/usage/exceptions.md @@ -12,8 +12,8 @@ in favour of giving you the error as a property. | Property | Behavior | | ------------- |-------------| -| `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. | -| `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. | +| `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. | +| `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. | | `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. | Those properties are available for the `IRestClient` instance and will be used for all request made with that instance.