async-exception-stacktrace icon indicating copy to clipboard operation
async-exception-stacktrace copied to clipboard

Internal exception handling code appears in the stacktrace

Open pawelpabich opened this issue 8 years ago • 0 comments

Hey,

We've noticed recently that System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() appears in stack traces that are generated using StackTraceEx extension method. I included a sample stack trace below. I will submit a PR that fixes this problem .

System.NotImplementedException: The method or operation is not implemented.\r\n   at Octopus.Tests.Octopus.Shared.Util.ExceptionExtensionsFixture.<GenerateException1>d__14.MoveNext() in PATH\\Util\\ExceptionExtensionsFixture.cs:line 186\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()\r\n   at Octopus.Tests.Octopus.Shared.Util.ExceptionExtensionsFixture.<GenerateException>d__13.MoveNext() in PATH\\Util\\ExceptionExtensionsFixture.cs:line 180\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServic
es.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()\r\n   at Octopus.Tests.Octopus.Shared.Util.ExceptionExtensionsFixture.<PrettyPrint_AsyncException>d__1.MoveNext() in PATH\\Util\\ExceptionExtensionsFixture.cs:line 27

pawelpabich avatar Jun 27 '17 03:06 pawelpabich