Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ CreateExceptionObject()

AggregateException System.Threading.Tasks.TaskExceptionHolder.CreateExceptionObject ( bool calledFromFinalizer,
Exception includeThisException )
inlinepackage

Definition at line 116 of file TaskExceptionHolder.cs.

117 {
120 if (includeThisException == null)
121 {
122 return new AggregateException(faultExceptions);
123 }
124 Exception[] array = new Exception[faultExceptions.Count + 1];
125 for (int i = 0; i < array.Length - 1; i++)
126 {
127 array[i] = faultExceptions[i].SourceException;
128 }
130 return new AggregateException(array);
131 }
void MarkAsHandled(bool calledFromFinalizer)
volatile List< ExceptionDispatchInfo > m_faultExceptions

References System.array, System.Threading.Tasks.TaskExceptionHolder.m_faultExceptions, and System.Threading.Tasks.TaskExceptionHolder.MarkAsHandled().