We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have this Hystrix code which I want to migrate to resilience4j:
@ExceptionHandler(HystrixRuntimeException.class) public ResponseEntity<?> handleHystrixException(HystrixRuntimeException hystrixException) { if (HystrixRuntimeException.FailureType.TIMEOUT == hystrixException.getFailureType()) { return new InternalTimeoutException(); } }
I tried this:
@ExceptionHandler(HystrixRuntimeException.class) public ResponseEntity<?> handleHystrixException(HystrixRuntimeException hystrixException) { if (hystrixException.getCause().getCause() instanceof TimeoutException) { return new InternalTimeoutException(); } }
I can't find how to replace HystrixRuntimeException in resilience4j. Do you know how it should be replaced?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have this Hystrix code which I want to migrate to resilience4j:
I tried this:
I can't find how to replace HystrixRuntimeException in resilience4j. Do you know how it should be replaced?
The text was updated successfully, but these errors were encountered: