Skip to content

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 Harmannz force-pushed the pt-694-add_created_http_code branch from 85c1c1b to 6ec3410 Compare May 17, 2021 23:19
@Harmannz
Copy link
Author

Hey, please add reviewers you see fit.

@dylannz-sailthru dylannz-sailthru requested a review from mudgeST May 18, 2021 00:23
@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.

2 participants