Experts Exchange connects you with the people and services you need so you can get back to work.
seems to bubble straight up the call stack.
Your question, your audience. Choose who sees your identity—and your question—with question security.
is there anything in the InnerException property?
var task1 = Task.Factory.StartNew(() =>
throw new MyCustomException("I'm bad, but not too bad!");
catch (AggregateException ae)
// Assume we know what's going on with this particular exception.
// Rethrow anything else. AggregateException.Handle provides
// another way to express this. See later example.
foreach (var e in ae.InnerExceptions)
if (e is MyCustomException)
Open in new window
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
From novice to tech pro — start learning today.
Premium members can enroll in this course at no extra cost.
Premium members get this course for $159.20.
Premium members get this course for $62.50.
Premium members get this course for $37.50.
Premium members get this course for $349.00.
Premium members get this course for $174.99.