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

Do not throw exception for successful http codes and remove redundant cases #68

Closed
wants to merge 1 commit into from

Conversation

Harmannz
Copy link

@Harmannz Harmannz commented May 17, 2021

The UnAuthorizedException and ResourceNotFoundException are redundant. They are never thrown by the handleResponse method.

They can technically be thrown if specificity is required. E.g.
throw new UnAuthorizedException(statusCode, "bad gateway", (Map<String, Object>)parseObject);

If not required, then I am happy to delete those exception classes:
https://github.com/sailthru/sailthru-java-client/tree/master/src/main/com/sailthru/client/exceptions

@Harmannz
Copy link
Author

Hey, please add reviewers you see fit.

@Harmannz
Copy link
Author

Going to put this PR to the back burner as it contains refactoring that may require approval from Matt.
I have created a new PR which contains only the changes required for adding 201 http status code.
#69

@Harmannz Harmannz closed this May 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant