Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse ProblemDetails returned from API to provide structured error data #1105

Open
VMelnalksnis opened this issue Feb 19, 2024 · 0 comments
Open
Labels
type:enhancement New feature or request

Comments

@VMelnalksnis
Copy link
Owner

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 parses ProblemDetails 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.

@VMelnalksnis VMelnalksnis added the type:enhancement New feature or request label Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant