throwIfNeeded static method

void throwIfNeeded(
  1. Iterable<FException> innerExceptions
)

Implementation

static void throwIfNeeded(final Iterable<FException> innerExceptions) {
  if (innerExceptions.isNotEmpty) {
    if (innerExceptions.length == 1) {
      throw innerExceptions.first;
    }
    throw FExceptionAggregate(innerExceptions);
  }
}