Created by: yzhoholiev
This PR resolves an issue with the ApiException error content described in #3473 (closed) .
The issue is linked to migration to the generic IRestResponse<T>
. The deserialization happens before the exception is actually checked by ExceptionFactory
.
Possible fix is to propagate both raw response content from IRestResponse.Content
as well as IRestResponse<T>.Data
to the ApiResponse
.
But I think it makes sense to roll back to the older implementation, where deserialization happed if an exception hadn't been constructed.
Technical committee: @mandrean (2017/08), @jimschubert (2017/09)