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

Java - Add ResponseStatusCode to API error/exception #2246

Closed
3 tasks done
baywet opened this issue Feb 2, 2023 · 0 comments · Fixed by microsoft/kiota-java#220
Closed
3 tasks done

Java - Add ResponseStatusCode to API error/exception #2246

baywet opened this issue Feb 2, 2023 · 0 comments · Fixed by microsoft/kiota-java#220
Assignees
Labels
enhancement New feature or request Java
Milestone

Comments

@baywet
Copy link
Member

baywet commented Feb 2, 2023

related to #2216
To improve the error handling experience we need to add the status code the the main api error type:

  • add a ResponseStatusCode field to the api exception class
  • add corresponding accessors (if needed)
  • populate the information in the request adapter when an error is encountered

Examples
microsoft/kiota-dotnet#68
microsoft/kiota-http-dotnet#82

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Java
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants