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

ErrorType.create unnecessarily throws on certain codes #47

Open
meditativeape opened this issue Sep 15, 2017 · 3 comments
Open

ErrorType.create unnecessarily throws on certain codes #47

meditativeape opened this issue Sep 15, 2017 · 3 comments

Comments

@meditativeape
Copy link
Contributor

meditativeape commented Sep 15, 2017

Why does ErrorType.create throw on CUSTOM_CLIENT and CUSTOM_SERVER?
https://github.com/palantir/http-remoting-api/blob/develop/errors/src/main/java/com/palantir/remoting/api/errors/ErrorType.java#L103

@uschi2000
Copy link
Contributor

looks like this behavior is obsolete now, it's functionally equivalent to the server/client methods, right?

@meditativeape
Copy link
Contributor Author

Yes, so I think it doesn't need to throw any more? Reason I ask is Conjure generated code uses ErrorType.create for all error codes, and fails at runtime if any is CUSTOM_CLIENT or CUSTOM_SERVER. Seems easier to change in remoting-api than special case them in Conjure.

@uschi2000
Copy link
Contributor

uschi2000 commented Sep 15, 2017 via email

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

No branches or pull requests

2 participants