-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Recommended way of handling errors. #1793
Comments
It depends on whether you have exceptions enabled or not (via First, let's summarize the differences quickly:
If you're on .NET 4.5/4.6, then For .NET Core, With exceptions turned off (default)... You use the With exceptions turned on... Three types of exceptions will bubble out:
Development time exceptions: These are CLR exceptions like We've been contemplating (internally) creating a single type that encapsulates and simplifies all of this information, and makes it easier to error check on the response. Additionally, we want to add |
Thanks for the explanation =) |
When exceptions are not enabled, and the server returns an error 400, When exceptions are enabled, the situation is no better. There's no way (that I can find) to access any of the useful information about what REALLY went wrong. Knowing that there was an error 400 is all well and good, but especially in development scenarios, it's really important to know what went wrong. Now that we don't have tracing either, we can't even look at those responses. |
My call looks exactly like this:
|
What is the recommended way of handling errors with 2.x?
IsValid and ServerError? What about IApiCallDetails?
Thanks
The text was updated successfully, but these errors were encountered: