Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/get-help/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
4 changes: 2 additions & 2 deletions docs/usage/exceptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down