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

Swift - Add ResponseStatusCode to API error/exception #10

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

Swift - Add ResponseStatusCode to API error/exception #10

baywet opened this issue Feb 2, 2023 · 0 comments
Labels
type:enhancement Enhancement request targeting an existing experience

Comments

@baywet
Copy link
Member

baywet commented Feb 2, 2023

related to microsoft/kiota#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 the type:enhancement Enhancement request targeting an existing experience label Feb 2, 2023
@baywet baywet transferred this issue from microsoft/kiota Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement Enhancement request targeting an existing experience
Projects
Status: Todo 📃
Development

No branches or pull requests

1 participant