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

Feature - Fix non-json error handling #57

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

WouterJanson
Copy link
Contributor

@WouterJanson WouterJanson commented Nov 25, 2020

Fixes #56

@@ -0,0 +1,40 @@
using Newtonsoft.Json;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we want to use #nullable enable here?

Copy link
Contributor Author

@WouterJanson WouterJanson Nov 25, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're still at C# 7.3 and I don't know if we want to upgrade to C# 8.0 or greater just jet because it's a client library.

Comment on lines +99 to +100
case (HttpStatusCode)429:
throw new RateLimitException(errorMessage);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be separated with empty lines

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 8215dcb

@@ -0,0 +1,20 @@
using Newtonsoft.Json;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#nullable enable (?)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -0,0 +1,40 @@
using Newtonsoft.Json;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#nullable enable (?)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -0,0 +1,21 @@
using System;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#nullable enable (?)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@WouterJanson WouterJanson force-pushed the feature/fix-nonjson-error-handling branch from 8215dcb to 37db712 Compare November 25, 2020 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Throw Signhost Exception on 429
3 participants