Parse ProblemDetails
returned from API to provide structured error data
#1105
Labels
type:enhancement
New feature or request
Is your feature request related to a problem? Please describe.
Right now in case of any exception from API an
HttpRequestException
is thrown with the response content as the message. It's hard to take any action or provide any structured details to the user this way.Describe the solution you'd like
The
IGnomeshadeClient
parsesProblemDetails
if they are returned.Additional context
I'm not sure what would be the best way to return those details - either by using
OneOf<TRespose, ProblemDetails>
, or throwing an exception.The text was updated successfully, but these errors were encountered: