Gets the AggregateException that caused the System.Threading.Tasks.Task to end prematurely. If the System.Threading.Tasks.Task completed successfully or has not yet thrown any exceptions, this will return null.
Documentation for this section has not yet been entered.
Tasks that throw unhandled exceptions store the resulting exception and propagate it wrapped in a AggregateException in calls to Task.Wait or in accesses to the Task.Exception property. Any exceptions not observed by the time the task instance is garbage collected will be propagated on the finalizer thread. For more information and an example, see Exception Handling (Task Parallel Library).