Quantum 3
3.1.0
Utility methods to work with exceptions. More...
Static Public Member Functions | |
| static void | Aggregate (ref List< Exception > exceptions, Exception exn) |
| Adds an exception to the collected exceptions, to be thrown later with ThrowIfAny. The list is only created when the first exception is added, so loops where nothing fails don't allocate. More... | |
| static void | ThrowIfAny (List< Exception > exceptions) |
Throws the collected exceptions, used by loops that run every element before reporting what failed. A single exception is rethrown as is with its original stack trace, several are thrown as an AggregateException. Does nothing if exceptions is null or empty. More... | |
Utility methods to work with exceptions.
|
inlinestatic |
Throws the collected exceptions, used by loops that run every element before reporting what failed. A single exception is rethrown as is with its original stack trace, several are thrown as an AggregateException. Does nothing if exceptions is null or empty.
| exceptions | The collected exceptions |
|
inlinestatic |
Adds an exception to the collected exceptions, to be thrown later with ThrowIfAny. The list is only created when the first exception is added, so loops where nothing fails don't allocate.
| exceptions | The collected exceptions, created if null |
| exn | The exception to add |