Hystrix icon indicating copy to clipboard operation
Hystrix copied to clipboard

Query: Ignoring the exception based on method response

Open shankarjoshi48 opened this issue 7 years ago • 2 comments
trafficstars

Hi, I have a query on ignoring exceptions. Currently I am using Services will throw generic exception of type MyServiceException. We can use @HystrixCommand(ignoreExceptions = { MyServiceException.class}) but it will whitelist the only exception generated by the Service. Is there a way using which I can tell Hystrix to treat the exception as failure only when MyServiceException's method, say isHystrixIgnorableResponse(), returns false as response and ignore the exception when it returns true?

Ask: Instead of Ignoring all occurrences of Exception Class, can we selectively ignore the Exception based on the response from one of the method of same exception?

Thanks

shankarjoshi48 avatar Dec 05 '17 11:12 shankarjoshi48

how did you go about this ?

karthigm avatar Oct 06 '22 13:10 karthigm

好的,我已收到。

ThinkingMan007 avatar Oct 06 '22 13:10 ThinkingMan007