davezych / shience

A .NET port(ish) of Github's Scientist library. (https://github.com/github/scientist)
MIT License
9 stars 1 forks source link

ExceptionDispatchInfo should be used to preserve the stacktrace #36

Closed MovGP0 closed 8 years ago

MovGP0 commented 8 years ago

in order to preserve the stacktrace when the control action throws an exception, the exception should be captured using the ExceptionDispatchInfo in the ExperimentResult as an internal field and then rethrown by the .Execute() and .ExecuteAsync() methods.

MovGP0 commented 8 years ago

more info: Preserving a stacktrace when rethrowing exception with ExceptionDispatchInfo