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

Ruby - Add ResponseStatusCode to API error/exception #2244

Open
3 tasks
baywet opened this issue Feb 2, 2023 · 0 comments
Open
3 tasks

Ruby - Add ResponseStatusCode to API error/exception #2244

baywet opened this issue Feb 2, 2023 · 0 comments
Labels
enhancement New feature or request Ruby
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

@baywet baywet added Ruby enhancement New feature or request labels Feb 2, 2023
@baywet baywet added this to the Kiota post-GA milestone Feb 2, 2023
@baywet baywet self-assigned this Feb 2, 2023
@baywet baywet removed their assignment Jul 13, 2023
@github-project-automation github-project-automation bot moved this to Todo in Kiota Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Ruby
Projects
Status: New📃
Development

No branches or pull requests

1 participant