Skip to content

Commit 9a859da

Browse files
zhurpaveladriancole
authored andcommitted
Replaces getFailedExecutionException() on getExecutionException() for fallback factory
Fixes OpenFeign#464
1 parent 7b646ab commit 9a859da

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

hystrix/src/main/java/feign/hystrix/FallbackFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public interface FallbackFactory<T> {
3333
/**
3434
* Returns an instance of the fallback appropriate for the given cause
3535
*
36-
* @param cause corresponds to {@link com.netflix.hystrix.AbstractCommand#getFailedExecutionException()}
36+
* @param cause corresponds to {@link com.netflix.hystrix.AbstractCommand#getExecutionException()}
3737
* often, but not always an instance of {@link FeignException}.
3838
*/
3939
T create(Throwable cause);

hystrix/src/main/java/feign/hystrix/HystrixInvocationHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ protected Object getFallback() {
119119
return super.getFallback();
120120
}
121121
try {
122-
Object fallback = fallbackFactory.create(getFailedExecutionException());
122+
Object fallback = fallbackFactory.create(getExecutionException());
123123
Object result = fallbackMethodMap.get(method).invoke(fallback, args);
124124
if (isReturnsHystrixCommand(method)) {
125125
return ((HystrixCommand) result).execute();

0 commit comments

Comments
 (0)