use of ca.corefacility.bioinformatics.irida.exceptions.galaxy.GalaxyToolDataTableException in project irida by phac-nml.
the class GalaxyToolDataService method getToolDataTable.
/**
* Gets details about a given tool data table.
*
* @param dataTableId
* The id of the tool data table.
* @return The Tool Data Table Object.
* @throws GalaxyToolDataTableException
* If there was an issue getting the details of the tool data table.
*/
public TabularToolDataTable getToolDataTable(String dataTableId) throws GalaxyToolDataTableException {
checkNotNull(dataTableId, "dataTableId is null");
checkNotNull(toolDataClient, "toolDataClient is null");
TabularToolDataTable toolDataTable = toolDataClient.showDataTable(dataTableId);
if (toolDataTable != null) {
return toolDataTable;
} else {
throw new GalaxyToolDataTableException("Could not find Tool Data Table named: " + dataTableId);
}
}
Aggregations