fun ErrorCollector.collectOrThrow(error: Throwable): Unit
If we are in "soft assertion mode" will add this throwable to the list of throwables for the current execution. Otherwise will throw immediately.