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
Is your feature request related to a problem? Please describe.
I'd like to use ValidationApiException, but I found no way to set the ContentHeaders property, which is inherited from ApiException.
Describe the solution you'd like
It would be useful, if ValidationApiException.Create sets the ContentHeaders property to the value of the ContentHeaders property from the ApiException passed to the Create function.
Describe alternatives you've considered
I'm currently using reflection, but that's not my preferred solution.
Describe suggestions on how to achieve the feature
Change the setter of ApiException.ContentHeaders to protected
Add ex.ContentHeaders = exception.ContentHeaders to the ValidationApiException.Create function
Additional context
Target framework: .NET 8.0/.NET Framework 4.7.2
Refit 8.0.0
The text was updated successfully, but these errors were encountered:
I updated the issue, because it would be much better for the ContentHeaders setter to be protected, because that would also allow exceptions derived from ApiException to set this property.
Is your feature request related to a problem? Please describe.
I'd like to use
ValidationApiException
, but I found no way to set theContentHeaders
property, which is inherited fromApiException
.Describe the solution you'd like
It would be useful, if
ValidationApiException.Create
sets theContentHeaders
property to the value of theContentHeaders
property from theApiException
passed to theCreate
function.Describe alternatives you've considered
I'm currently using reflection, but that's not my preferred solution.
Describe suggestions on how to achieve the feature
ApiException.ContentHeaders
toprotected
ex.ContentHeaders = exception.ContentHeaders
to theValidationApiException.Create
functionAdditional context
The text was updated successfully, but these errors were encountered: