You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently IHystrixCommand has Execute method with two overloads, but both does not provide exception parameter in fallback method. InnerException is valuable in case any exception occurred during execution, then in fallback we can log and throw an exception based on that.
Below are the two overloads.
T Execute(Func primaryFunction, CancellationTokenSource cancellationTokenSource = null);
T Execute(Func primaryFunction, Func fallbackFunction, CancellationTokenSource cancellationTokenSource = null)
The text was updated successfully, but these errors were encountered:
vnadar
changed the title
InnerException not exposed as a parameter in Fallback method
InnerException does not exposed as a parameter in Fallback method
Nov 15, 2017
vnadar
changed the title
InnerException does not exposed as a parameter in Fallback method
InnerException does not pass exception as a parameter in Fallback method
Nov 15, 2017
vnadar
changed the title
InnerException does not pass exception as a parameter in Fallback method
Execute method does not pass exception as a parameter in Fallback method
Nov 15, 2017
Currently IHystrixCommand has Execute method with two overloads, but both does not provide exception parameter in fallback method. InnerException is valuable in case any exception occurred during execution, then in fallback we can log and throw an exception based on that.
Below are the two overloads.
T Execute(Func primaryFunction, CancellationTokenSource cancellationTokenSource = null);
T Execute(Func primaryFunction, Func fallbackFunction, CancellationTokenSource cancellationTokenSource = null)
The text was updated successfully, but these errors were encountered: