|
|
|
|
|
|
context: new ErrorDescription("during a task callback"), |
|
|
|
informationCollector: callbackStack == null |
|
|
|
? (InformationCollector) null |
|
|
|
: (StringBuilder sb) => { |
|
|
|
sb.AppendLine("\nThis exception was thrown in the context of a scheduler callback. " + |
|
|
|
"When the scheduler callback was _registered_ (as opposed to when the " + |
|
|
|
"exception was thrown), this was the stack: " + callbackStack); |
|
|
|
} |
|
|
|
: infoCollector |
|
|
|
)); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
context: new ErrorDescription("during a scheduler callback"), |
|
|
|
informationCollector: callbackStack == null |
|
|
|
? (InformationCollector) null |
|
|
|
: (StringBuilder information) => { |
|
|
|
information.AppendLine( |
|
|
|
"\nThis exception was thrown in the context of a scheduler callback. " + |
|
|
|
"When the scheduler callback was _registered_ (as opposed to when the " + |
|
|
|
"exception was thrown), this was the stack:" |
|
|
|
); |
|
|
|
foreach (var line in UIWidgetsError.defaultStackFilter( |
|
|
|
callbackStack.TrimEnd().Split('\n'))) { |
|
|
|
information.AppendLine(line); |
|
|
|
} |
|
|
|
} |
|
|
|
: infoCollector |
|
|
|
)); |
|
|
|
} |
|
|
|
|
|
|
|