-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Cleaner error propagation in hystrix core v2 #1478
Comments
I'm not sure I follow. |
My use case is pretty simple: my HTTP clients are throwing functional exceptions that are catch in different places in my code. I don't want Hystrix to count some of the exception as server error (for example: bad parameters) and so I wrapped them in A possible workaround would be to check for the same interface ( What do you think ? |
OK, got it, thanks for clarifying - that does make sense to me now. For next steps, I can imagine the following implementations:
Any thoughts on which of these makes sense from your perspective? |
Clearly the first one. I really like the fact that you can just add to your exception an |
My schedule is jammed at the moment. Would you like to submit a PR with an implementation of this? |
Sure ! I will change the method I don't know Hystrix very well but does it sound good for you ? |
My :+1 for above approach. HowyI would like to have a look on it once ✅ |
Fixes #1478 : allow cleaner error propagation
I have exactly the same issue as in #1414 (fix works great btw, thx!) but for
HystrixBadRequestException
.I tried to implement a
HystrixCommandExecutionHook
but all the methods are executed beforedecomposeException
so I don't know how to make it work.Any idea ?
Thank you !
The text was updated successfully, but these errors were encountered: