throwIfNeeded static method
Implementation
static void throwIfNeeded(Iterable<FreemeworkException> innerExceptions) {
if (innerExceptions.isNotEmpty) {
if (innerExceptions.length == 1) {
throw innerExceptions.first;
}
throw AggregateException(innerExceptions);
}
}