use of bio.terra.service.dataset.exception.TableNotFoundException in project jade-data-repo by DataBiosphere.
the class IngestUtils method getDatasetTable.
public static DatasetTable getDatasetTable(FlightContext context, Dataset dataset) {
IngestRequestModel ingestRequest = getIngestRequestModel(context);
Optional<DatasetTable> optTable = dataset.getTableByName(ingestRequest.getTable());
if (!optTable.isPresent()) {
throw new TableNotFoundException("Table not found: " + ingestRequest.getTable());
}
return optTable.get();
}
Aggregations