Skip to content

Internal exception handling code appears in the stacktrace #1

@pawelpabich

Description

@pawelpabich

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions