Skip to content

What is the empty Data entry on unhandled exceptions? #8444

Answered by miloush
ThomasArdal asked this question in Q&A
Discussion options

You must be logged in to vote

// see whether this dispatcher has already seen the exception.
// This can happen when the dispatcher is re-entered via
// PushFrame (or similar).
if (!e.Data.Contains(ExceptionDataKey))
{
// first time we've seen this exception - add data to the exception
e.Data.Add(ExceptionDataKey, null);
}
else
{
// we've seen this exception before - don't catch it
return false;
}

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ThomasArdal
Comment options

@miloush
Comment options

@ThomasArdal
Comment options

Answer selected by ThomasArdal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants