File tree Expand file tree Collapse file tree
hystrix/src/main/java/feign/hystrix Expand file tree Collapse file tree Original file line number Diff line number Diff 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 );
Original file line number Diff line number Diff 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 ();
You can’t perform that action at this time.
0 commit comments