Hystrix
Hystrix copied to clipboard
Query: Ignoring the exception based on method response
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
how did you go about this ?
好的,我已收到。